[Lldb-commits] [lldb] [lldb][NFCI] Remove unneeded ConstString from intel-pt plugin (PR #66721)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 18 17:00:15 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/66721.diff
2 Files Affected:
- (modified) lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp (+2-2)
- (modified) lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h (+1-1)
``````````diff
diff --git a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
index bcac731713bb24b..015faa89fcfada8 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 20faabdce790241..da9cefe9ed95d67 100644
--- a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
+++ b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
@@ -26,7 +26,7 @@ class TraceIntelPT : public Trace {
/// Properties to be used with the `settings` command.
class PluginProperties : public Properties {
public:
- static ConstString GetSettingName();
+ static llvm::StringRef GetSettingName();
PluginProperties();
``````````
</details>
https://github.com/llvm/llvm-project/pull/66721
More information about the lldb-commits
mailing list