From 2ace1e5753a49195ca17f3e175c7e189cf147760 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 18 Oct 2021 10:39:58 +0200 Subject: [lldb] Remove ConstString from GetPluginNameStatic of some plugins This patch deals with ObjectFile, ObjectContainer and OperatingSystem plugins. I'll convert the other types in separate patches. In order to enable piecemeal conversion, I am leaving some ConstStrings in the lowest PluginManager layers. I'll convert those as the last step. Differential Revision: https://reviews.llvm.org/D112061 --- .../Plugins/OperatingSystem/Python/OperatingSystemPython.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp') diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp index 570c9aa..7d14f02 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp @@ -65,12 +65,7 @@ OperatingSystem *OperatingSystemPython::CreateInstance(Process *process, return nullptr; } -ConstString OperatingSystemPython::GetPluginNameStatic() { - static ConstString g_name("python"); - return g_name; -} - -const char *OperatingSystemPython::GetPluginDescriptionStatic() { +llvm::StringRef OperatingSystemPython::GetPluginDescriptionStatic() { return "Operating system plug-in that gathers OS information from a python " "class that implements the necessary OperatingSystem functionality."; } -- cgit v1.1