summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-12 05:49:54 +0000
committerZachary Turner <zturner@google.com>2017-05-12 05:49:54 +0000
commit2833321f09efd9387257d17a3ef5128841142e6f (patch)
tree734c009de6f4895529effceec687d377434ba2d9 /lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp
parent41c99364602a6965c30be674d75451ad87658d8c (diff)
downloadbcm5719-llvm-2833321f09efd9387257d17a3ef5128841142e6f.tar.gz
bcm5719-llvm-2833321f09efd9387257d17a3ef5128841142e6f.zip
Update StructuredData::String to return StringRefs.
It was returning const std::string& which was leading to unnecessary copies all over the place, and preventing people from doing things like Dict->GetValueForKeyAsString("foo", ref); llvm-svn: 302875
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp')
-rw-r--r--lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp
index 709466cb103..75bc518f753 100644
--- a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp
+++ b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp
@@ -340,8 +340,8 @@ bool OperatingSystemGo::UpdateThreadList(ThreadList &old_thread_list,
memory_thread->IsValid()) {
memory_thread->ClearBackingThread();
} else {
- memory_thread.reset(new ThreadMemory(
- *m_process, goroutine.m_goid, nullptr, nullptr, goroutine.m_gobuf));
+ memory_thread.reset(new ThreadMemory(*m_process, goroutine.m_goid, "", "",
+ goroutine.m_gobuf));
}
// Search for the backing thread if the goroutine is running.
if (2 == (goroutine.m_status & 0xfff)) {
OpenPOWER on IntegriCloud