diff options
author | Alex Langford <alangford@apple.com> | 2023-04-18 18:45:03 -0700 |
---|---|---|
committer | Alex Langford <alangford@apple.com> | 2023-04-19 14:45:02 -0700 |
commit | 96a800c07f0220f840560e78bbd77104121d24cf (patch) | |
tree | 3a6169a64172ee9294c9d47182d6da29e88277a1 /lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | |
parent | 3125af2b6b8a5a502d8cef480a874474b55efef1 (diff) | |
download | llvm-96a800c07f0220f840560e78bbd77104121d24cf.zip llvm-96a800c07f0220f840560e78bbd77104121d24cf.tar.gz llvm-96a800c07f0220f840560e78bbd77104121d24cf.tar.bz2 |
[lldb] Change setting descriptions to use StringRef instead of ConstString
These probably do not need to be in the ConstString StringPool as they
don't really need any of the advantages that ConstStrings offer.
Lifetime for these things is always static and we never need to perform
comparisons for setting descriptions.
Differential Revision: https://reviews.llvm.org/D148679
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index 1d11caf..515c43e 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -190,8 +190,7 @@ void ObjectFilePECOFF::DebuggerInitialize(Debugger &debugger) { const bool is_global_setting = true; PluginManager::CreateSettingForObjectFilePlugin( debugger, GetGlobalPluginProperties().GetValueProperties(), - ConstString("Properties for the PE/COFF object-file plug-in."), - is_global_setting); + "Properties for the PE/COFF object-file plug-in.", is_global_setting); } } |