Skip to content

Commit 45e6e4d

Browse files
authored
[lldb][NFCI] Remove unneeded ConstString from intel-pt plugin (#66721)
This is a follow-up to 14d95b2. 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.
1 parent de37d96 commit 45e6e4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ enum {
4848
#include "TraceIntelPTPropertiesEnum.inc"
4949
};
5050

51-
ConstString TraceIntelPT::PluginProperties::GetSettingName() {
52-
return ConstString(TraceIntelPT::GetPluginNameStatic());
51+
llvm::StringRef TraceIntelPT::PluginProperties::GetSettingName() {
52+
return TraceIntelPT::GetPluginNameStatic();
5353
}
5454

5555
TraceIntelPT::PluginProperties::PluginProperties() : Properties() {

lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TraceIntelPT : public Trace {
2626
/// Properties to be used with the `settings` command.
2727
class PluginProperties : public Properties {
2828
public:
29-
static ConstString GetSettingName();
29+
static llvm::StringRef GetSettingName();
3030

3131
PluginProperties();
3232

0 commit comments

Comments
 (0)