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//===----------------------------------------------------------------------===//
8
9#include "lldb/API/SBLanguageRuntime.h"
10#include "lldb/Target/Language.h"
11#include "lldb/Utility/Instrumentation.h"
12
13using namespace lldb;
14using namespace lldb_private;
15
16lldb::LanguageType
17SBLanguageRuntime::GetLanguageTypeFromString(const char *string) {
18 LLDB_INSTRUMENT_VA(string);
19
20 return Language::GetLanguageTypeFromString(string: llvm::StringRef(string));
21}
22
23const char *
24SBLanguageRuntime::GetNameForLanguageType(lldb::LanguageType language) {
25 LLDB_INSTRUMENT_VA(language);
26
27 return Language::GetNameForLanguageType(language);
28}
29

source code of lldb/source/API/SBLanguageRuntime.cpp