[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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user