diff options
author | Pavel Labath <pavel@labath.sk> | 2021-10-22 19:53:43 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2021-10-28 10:15:03 +0200 |
commit | 5f4980f004f052367b947ff3aa6cc142cea1c23f (patch) | |
tree | 8973a3868e124c15c18e1030c06e8012ad99cb6a /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 21adcdb712c6c8018d6eabf70c44212f92c8274e (diff) | |
download | llvm-5f4980f004f052367b947ff3aa6cc142cea1c23f.zip llvm-5f4980f004f052367b947ff3aa6cc142cea1c23f.tar.gz llvm-5f4980f004f052367b947ff3aa6cc142cea1c23f.tar.bz2 |
[lldb] Remove ConstString from Process, ScriptInterpreter and StructuredData plugin names
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
3 files changed, 4 insertions, 11 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 5b1ffbc..74fb42a 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -436,12 +436,7 @@ void ScriptInterpreterPython::SharedLibraryDirectoryHelper( #endif } -lldb_private::ConstString ScriptInterpreterPython::GetPluginNameStatic() { - static ConstString g_name("script-python"); - return g_name; -} - -const char *ScriptInterpreterPython::GetPluginDescriptionStatic() { +llvm::StringRef ScriptInterpreterPython::GetPluginDescriptionStatic() { return "Embedded Python interpreter"; } diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h index 5a75c0a..83cc15d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h @@ -48,8 +48,8 @@ public: static void Initialize(); static void Terminate(); - static lldb_private::ConstString GetPluginNameStatic(); - static const char *GetPluginDescriptionStatic(); + static llvm::StringRef GetPluginNameStatic() { return "script-python"; } + static llvm::StringRef GetPluginDescriptionStatic(); static FileSpec GetPythonDir(); static void SharedLibraryDirectoryHelper(FileSpec &this_file); diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h index 65f5e34..a3f83b6 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h @@ -292,9 +292,7 @@ public: static lldb::ScriptInterpreterSP CreateInstance(Debugger &debugger); // PluginInterface protocol - llvm::StringRef GetPluginName() override { - return GetPluginNameStatic().GetStringRef(); - } + llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); } class Locker : public ScriptInterpreterLocker { public: |