summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCommandInterpreter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-12 20:41:02 +0000
committerZachary Turner <zturner@google.com>2016-11-12 20:41:02 +0000
commit442f6530d21d0980c591522a1bd35dcaebce6f68 (patch)
treed0dfcd032d930ebc77461e41520f4a73012f0c76 /lldb/source/API/SBCommandInterpreter.cpp
parente2411fabdaf01d883d77cf3f8456367a9dc685ff (diff)
downloadbcm5719-llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.tar.gz
bcm5719-llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.zip
Make CommandObject help getters/setters use StringRef.
llvm-svn: 286731
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 45f8ab364b2..aa4953999b8 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -542,11 +542,13 @@ const char *SBCommand::GetName() {
}
const char *SBCommand::GetHelp() {
- return (IsValid() ? m_opaque_sp->GetHelp() : nullptr);
+ return (IsValid() ? ConstString(m_opaque_sp->GetHelp()).AsCString()
+ : nullptr);
}
const char *SBCommand::GetHelpLong() {
- return (IsValid() ? m_opaque_sp->GetHelpLong() : nullptr);
+ return (IsValid() ? ConstString(m_opaque_sp->GetHelpLong()).AsCString()
+ : nullptr);
}
void SBCommand::SetHelp(const char *help) {
OpenPOWER on IntegriCloud