diff options
| author | Zachary Turner <zturner@google.com> | 2017-05-12 05:49:54 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-05-12 05:49:54 +0000 |
| commit | 2833321f09efd9387257d17a3ef5128841142e6f (patch) | |
| tree | 734c009de6f4895529effceec687d377434ba2d9 /lldb/source/Target/Process.cpp | |
| parent | 41c99364602a6965c30be674d75451ad87658d8c (diff) | |
| download | bcm5719-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/Target/Process.cpp')
| -rw-r--r-- | lldb/source/Target/Process.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 77da2b306e4..ff86b0dbe05 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -6162,8 +6162,7 @@ void Process::MapSupportedStructuredDataPlugins( } const_type_names.insert(ConstString(type_name->GetValue())); - if (log) - log->Printf("- %s", type_name->GetValue().c_str()); + LLDB_LOG(log, "- {0}", type_name->GetValue()); return true; }); |

