aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2021-10-15 13:07:39 +0200
committerPavel Labath <pavel@labath.sk>2021-10-18 10:14:42 +0200
commita3939e159fc9528b097672794035a1cdfda520e8 (patch)
tree1551cdd6d6c2d8b97bf69b04742b4b4cf0ca07d4 /lldb/source/Commands/CommandObjectThread.cpp
parentde4d2f80b75e2a1e4b0ac5c25e20f20839633688 (diff)
downloadllvm-a3939e159fc9528b097672794035a1cdfda520e8.zip
llvm-a3939e159fc9528b097672794035a1cdfda520e8.tar.gz
llvm-a3939e159fc9528b097672794035a1cdfda520e8.tar.bz2
[lldb] Return StringRef from PluginInterface::GetPluginName
There is no reason why this function should be returning a ConstString. While modifying these files, I also fixed several instances where GetPluginName and GetPluginNameStatic were returning different strings. I am not changing the return type of GetPluginNameStatic in this patch, as that would necessitate additional changes, and this patch is big enough as it is. Differential Revision: https://reviews.llvm.org/D111877
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 1534959..7a476022 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -2199,9 +2199,8 @@ public:
bool DoExecute(Args &command, CommandReturnObject &result) override {
Target &target = m_exe_ctx.GetTargetRef();
- result.GetOutputStream().Printf(
- "Trace technology: %s\n",
- target.GetTrace()->GetPluginName().AsCString());
+ result.GetOutputStream().Format("Trace technology: {0}\n",
+ target.GetTrace()->GetPluginName());
return CommandObjectIterateOverThreads::DoExecute(command, result);
}