diff options
author | Enrico Granata <egranata@apple.com> | 2015-09-09 22:30:24 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-09-09 22:30:24 +0000 |
commit | ac49453b58779dbc2f9949d797aa422249023432 (patch) | |
tree | a92d25c5fcb733ce01a00599d4587b9bcb900a40 /lldb/source/Core/ValueObject.cpp | |
parent | 255652e828ea84957f76d6719436e34ece09605d (diff) | |
download | bcm5719-llvm-ac49453b58779dbc2f9949d797aa422249023432.tar.gz bcm5719-llvm-ac49453b58779dbc2f9949d797aa422249023432.zip |
Introduce the notion of an escape helper. Different languages have different notion of what to print in a string and how to escape non-printable things. The escape helper is where this notion is provided to LLDB
This is NFC, other than a code re-org
llvm-svn: 247200
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 3efb28088d6..233676b320c 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -1595,13 +1595,13 @@ ValueObject::DumpPrintableRepresentation(Stream& s, 0, (custom_format == eFormatVectorOfChar) || (custom_format == eFormatCharArray)); - lldb_private::formatters::ReadBufferAndDumpToStreamOptions options(*this); + lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions options(*this); options.SetData(DataExtractor(buffer_sp, lldb::eByteOrderInvalid, 8)); // none of this matters for a string - pass some defaults options.SetStream(&s); options.SetPrefixToken(0); options.SetQuote('"'); options.SetSourceSize(buffer_sp->GetByteSize()); - formatters::StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringElementType::ASCII>(options); + formatters::StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringPrinter::StringElementType::ASCII>(options); return !error.Fail(); } |