[DAG] Fix typo in VSELECT SimplifyDemandedVectorElts handling. NFC.
[llvm-project.git] / lldb / source / API / SBLanguageRuntime.cpp
blobd571f282fce03d4a71a9cf9e7762be7fe8f508d0
1 //===-- SBLanguageRuntime.cpp ---------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "lldb/API/SBLanguageRuntime.h"
10 #include "lldb/Target/Language.h"
11 #include "lldb/Utility/Instrumentation.h"
13 using namespace lldb;
14 using namespace lldb_private;
16 lldb::LanguageType
17 SBLanguageRuntime::GetLanguageTypeFromString(const char *string) {
18 LLDB_INSTRUMENT_VA(string);
20 return Language::GetLanguageTypeFromString(llvm::StringRef(string));
23 const char *
24 SBLanguageRuntime::GetNameForLanguageType(lldb::LanguageType language) {
25 LLDB_INSTRUMENT_VA(language);
27 return Language::GetNameForLanguageType(language);