From 45e6e4d70e1e5bdd7d9f04dfd0f4cc8798bcde0c Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Tue, 19 Sep 2023 10:49:38 -0700 Subject: [PATCH] [lldb][NFCI] Remove unneeded ConstString from intel-pt plugin (#66721) This is a follow-up to 14d95b26aee0ac0ac8a70252e8a3c7a986e0e812. I would have changed it in that commit, but I don't build the intel-pt plugin so I didn't see this until later. --- lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp | 4 ++-- lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp index bcac731713bb..015faa89fcfa 100644 --- a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp +++ b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp @@ -48,8 +48,8 @@ enum { #include "TraceIntelPTPropertiesEnum.inc" }; -ConstString TraceIntelPT::PluginProperties::GetSettingName() { - return ConstString(TraceIntelPT::GetPluginNameStatic()); +llvm::StringRef TraceIntelPT::PluginProperties::GetSettingName() { + return TraceIntelPT::GetPluginNameStatic(); } TraceIntelPT::PluginProperties::PluginProperties() : Properties() { diff --git a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h index 20faabdce790..da9cefe9ed95 100644 --- a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h +++ b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h @@ -26,7 +26,7 @@ public: /// Properties to be used with the `settings` command. class PluginProperties : public Properties { public: - static ConstString GetSettingName(); + static llvm::StringRef GetSettingName(); PluginProperties();