summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/Watchpoint.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/Breakpoint/Watchpoint.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/Breakpoint/Watchpoint.cpp')
-rw-r--r--lldb/source/Breakpoint/Watchpoint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Breakpoint/Watchpoint.cpp b/lldb/source/Breakpoint/Watchpoint.cpp
index b213d0ee1b0..13dba8c8b19 100644
--- a/lldb/source/Breakpoint/Watchpoint.cpp
+++ b/lldb/source/Breakpoint/Watchpoint.cpp
@@ -109,9 +109,9 @@ bool Watchpoint::CaptureWatchedValue(const ExecutionContext &exe_ctx) {
// we can go grab the value raw and print it as unsigned.
return false;
}
- m_new_value_sp =
- ValueObjectMemory::Create(exe_ctx.GetBestExecutionContextScope(),
- watch_name.AsCString(), watch_address, m_type);
+ m_new_value_sp = ValueObjectMemory::Create(
+ exe_ctx.GetBestExecutionContextScope(), watch_name.GetStringRef(),
+ watch_address, m_type);
m_new_value_sp = m_new_value_sp->CreateConstantValue(watch_name);
return (m_new_value_sp && m_new_value_sp->GetError().Success());
}
OpenPOWER on IntegriCloud