From c0981da47d5696fe36474fcf86b4ce03ae3ff818 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 19 Nov 2021 21:06:13 +0100 Subject: Vendor import of llvm-project main llvmorg-14-init-10186-gff7f2cfa959b. --- .../OperatingSystem/Python/OperatingSystemPython.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 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 730c88f96e13..7d14f02e68f7 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp @@ -12,7 +12,6 @@ #include "OperatingSystemPython.h" -#include "Plugins/Process/Utility/DynamicRegisterInfo.h" #include "Plugins/Process/Utility/RegisterContextDummy.h" #include "Plugins/Process/Utility/RegisterContextMemory.h" #include "Plugins/Process/Utility/ThreadMemory.h" @@ -66,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."; } @@ -141,13 +135,6 @@ DynamicRegisterInfo *OperatingSystemPython::GetDynamicRegisterInfo() { return m_register_info_up.get(); } -// PluginInterface protocol -ConstString OperatingSystemPython::GetPluginName() { - return GetPluginNameStatic(); -} - -uint32_t OperatingSystemPython::GetPluginVersion() { return 1; } - bool OperatingSystemPython::UpdateThreadList(ThreadList &old_thread_list, ThreadList &core_thread_list, ThreadList &new_thread_list) { -- cgit v1.3