LLDB  mainline
SBLanguageRuntime.cpp
Go to the documentation of this file.
1 //===-- SBLanguageRuntime.cpp -----------------------------------*- C++ -*-===//
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 
10 #include "SBReproducerPrivate.h"
11 #include "lldb/Target/Language.h"
12 
13 using namespace lldb;
14 using namespace lldb_private;
15 
19  GetLanguageTypeFromString, (const char *), string);
20 
21  return Language::GetLanguageTypeFromString(
22  llvm::StringRef::withNullAsEmpty(string));
23 }
24 
25 const char *
28  GetNameForLanguageType, (lldb::LanguageType),
29  language);
30 
31  return Language::GetNameForLanguageType(language);
32 }
33 
34 namespace lldb_private {
35 namespace repro {
36 
37 template <>
40  GetLanguageTypeFromString, (const char *));
42  GetNameForLanguageType, (lldb::LanguageType));
43 }
44 
45 }
46 }
The registry contains a unique mapping between functions and their ID.
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
static const char * GetNameForLanguageType(lldb::LanguageType language)
#define LLDB_RECORD_STATIC_METHOD(Result, Class, Method, Signature,...)
#define LLDB_REGISTER_STATIC_METHOD(Result, Class, Method, Signature)
LanguageType
Programming language type.
static lldb::LanguageType GetLanguageTypeFromString(const char *string)
void RegisterMethods< SBLanguageRuntime >(Registry &R)
Definition: SBAddress.h:15