diff options
| author | Enrico Granata <egranata@apple.com> | 2015-08-27 00:45:33 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-08-27 00:45:33 +0000 |
| commit | c0499c98488cf00ddeb3305c1b225555c130b728 (patch) | |
| tree | dd2f643fffb18ec1ef7284fbd98a51bc59c66833 /lldb/source/DataFormatters | |
| parent | 08cb4fc688a9f1b195d8143ef63b0c74b724d17b (diff) | |
| download | bcm5719-llvm-c0499c98488cf00ddeb3305c1b225555c130b728.tar.gz bcm5719-llvm-c0499c98488cf00ddeb3305c1b225555c130b728.zip | |
Switch data formatters over to using std::function for their callbacks instead of raw function pointers. NFC
llvm-svn: 246130
Diffstat (limited to 'lldb/source/DataFormatters')
| -rw-r--r-- | lldb/source/DataFormatters/TypeSummary.cpp | 6 | ||||
| -rw-r--r-- | lldb/source/DataFormatters/TypeSynthetic.cpp | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/DataFormatters/TypeSummary.cpp b/lldb/source/DataFormatters/TypeSummary.cpp index fefaa2d8ad3..ac7963a5d0c 100644 --- a/lldb/source/DataFormatters/TypeSummary.cpp +++ b/lldb/source/DataFormatters/TypeSummary.cpp @@ -193,15 +193,15 @@ std::string CXXFunctionSummaryFormat::GetDescription () { StreamString sstr; - sstr.Printf ("`%s (%p) `%s%s%s%s%s%s%s", m_description.c_str(), - static_cast<void*>(&m_impl), + sstr.Printf ("%s%s%s%s%s%s%s %s", Cascades() ? "" : " (not cascading)", !DoesPrintChildren(nullptr) ? "" : " (show children)", !DoesPrintValue(nullptr) ? " (hide value)" : "", IsOneLiner() ? " (one-line printout)" : "", SkipsPointers() ? " (skip pointers)" : "", SkipsReferences() ? " (skip references)" : "", - HideNames(nullptr) ? " (hide member names)" : ""); + HideNames(nullptr) ? " (hide member names)" : "", + m_description.c_str()); return sstr.GetString(); } diff --git a/lldb/source/DataFormatters/TypeSynthetic.cpp b/lldb/source/DataFormatters/TypeSynthetic.cpp index 036f6f65d2e..a6107586d7c 100644 --- a/lldb/source/DataFormatters/TypeSynthetic.cpp +++ b/lldb/source/DataFormatters/TypeSynthetic.cpp @@ -111,11 +111,10 @@ std::string CXXSyntheticChildren::GetDescription() { StreamString sstr; - sstr.Printf("%s%s%s Generator at %p - %s", + sstr.Printf("%s%s%s %s", Cascades() ? "" : " (not cascading)", SkipsPointers() ? " (skip pointers)" : "", SkipsReferences() ? " (skip references)" : "", - reinterpret_cast<void*>(reinterpret_cast<intptr_t>(m_create_callback)), m_description.c_str()); return sstr.GetString(); |

