summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-12 18:17:36 +0000
committerZachary Turner <zturner@google.com>2016-11-12 18:17:36 +0000
commit22a2628f18094a4f7c1b40b90ec280739805768b (patch)
tree09d126e22c8933f10d7ce5c59a54aab20ee55acf /lldb/source/Commands/CommandObjectMemory.cpp
parentda6a63db1c9e7ec8674d9efde1bed9b9500a0d19 (diff)
downloadbcm5719-llvm-22a2628f18094a4f7c1b40b90ec280739805768b.tar.gz
bcm5719-llvm-22a2628f18094a4f7c1b40b90ec280739805768b.zip
Make ValueObjectMemory::Create accept StringRefs.
llvm-svn: 286726
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp
index 553357f2d07..5d0dc1126d9 100644
--- a/lldb/source/Commands/CommandObjectMemory.cpp
+++ b/lldb/source/Commands/CommandObjectMemory.cpp
@@ -810,7 +810,7 @@ protected:
StreamString name_strm;
name_strm.Printf("0x%" PRIx64, item_addr);
ValueObjectSP valobj_sp(ValueObjectMemory::Create(
- exe_scope, name_strm.GetString().c_str(), address, clang_ast_type));
+ exe_scope, name_strm.GetString(), address, clang_ast_type));
if (valobj_sp) {
Format format = m_format_options.GetFormat();
if (format != eFormatDefault)
OpenPOWER on IntegriCloud