LLDB  mainline
SBLanguageRuntime.cpp
Go to the documentation of this file.
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 
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(llvm::StringRef(string));
22 }
23 
24 const char *
27  GetNameForLanguageType, (lldb::LanguageType),
28  language);
29 
30  return Language::GetNameForLanguageType(language);
31 }
32 
33 namespace lldb_private {
34 namespace repro {
35 
36 template <>
39  GetLanguageTypeFromString, (const char *));
41  GetNameForLanguageType, (lldb::LanguageType));
42 }
43 
44 }
45 }
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
Language.h
SBReproducerPrivate.h
lldb_private::repro::RegisterMethods< SBLanguageRuntime >
void RegisterMethods< SBLanguageRuntime >(Registry &R)
Definition: SBLanguageRuntime.cpp:37
SBLanguageRuntime.h
LLDB_REGISTER_STATIC_METHOD
#define LLDB_REGISTER_STATIC_METHOD(Result, Class, Method, Signature)
Definition: ReproducerInstrumentation.h:103
lldb::SBLanguageRuntime::GetNameForLanguageType
static const char * GetNameForLanguageType(lldb::LanguageType language)
Definition: SBLanguageRuntime.cpp:25
lldb_private::repro::Registry
The registry contains a unique mapping between functions and their ID.
Definition: ReproducerInstrumentation.h:517
lldb::SBLanguageRuntime
Definition: SBLanguageRuntime.h:16
lldb::SBLanguageRuntime::GetLanguageTypeFromString
static lldb::LanguageType GetLanguageTypeFromString(const char *string)
Definition: SBLanguageRuntime.cpp:17
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
LLDB_RECORD_STATIC_METHOD
#define LLDB_RECORD_STATIC_METHOD(Result, Class, Method, Signature,...)
Definition: ReproducerInstrumentation.h:171
lldb
Definition: SBAddress.h:15