diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-01 17:41:48 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-01 17:41:48 +0000 |
commit | 2783d8179110b213714576fe6809ee8b02e55b16 (patch) | |
tree | ddc37de49ab920e3f79a2a640528b95184e13768 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | 9292983154f5ef5248f247a9e2b66543d5a74bbe (diff) | |
download | bcm5719-llvm-2783d8179110b213714576fe6809ee8b02e55b16.tar.gz bcm5719-llvm-2783d8179110b213714576fe6809ee8b02e55b16.zip |
[JSON] Use LLVM's library for encoding JSON in StructuredData
This patch replaces the hand-rolled JSON emission in StructuredData with
LLVM's JSON library.
Differential revision: https://reviews.llvm.org/D68248
llvm-svn: 373359
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index bb7f77fa514..6d9a74d39cc 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -29,8 +29,8 @@ using namespace lldb_private; using namespace lldb; -void StructuredPythonObject::Dump(Stream &s, bool pretty_print) const { - s << "Python Obj: 0x" << GetValue(); +void StructuredPythonObject::Serialize(llvm::json::OStream &s) const { + s.value(llvm::formatv("Python Obj: {0:X}", GetValue()).str()); } // PythonObject |