diff options
| author | Zachary Turner <zturner@google.com> | 2016-05-24 17:30:25 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-05-24 17:30:25 +0000 |
| commit | cac29ae03812a3e1c81c3eba4e9b57173d367604 (patch) | |
| tree | 2afda958e104d7e789c788a261fe453bbf3b22e4 /llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp | |
| parent | 4d2613f2762bc8a76156429bd43241d81197b301 (diff) | |
| download | bcm5719-llvm-cac29ae03812a3e1c81c3eba4e9b57173d367604.tar.gz bcm5719-llvm-cac29ae03812a3e1c81c3eba4e9b57173d367604.zip | |
Dump symbol record details in llvm-pdbdump
This makes use of the newly introduced `CVSymbolVisitor` to dump details
of each type of symbol record in the symbol streams. Future patches will
bring this visitor based dumping to the publics stream, as well as
creating a `SymbolDumpDelegate` to print more information about
relocations etc.
Differential Revision: http://reviews.llvm.org/D20545
Reviewed By: ruiu
llvm-svn: 270585
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp index ab69240f2e5..d41d7d64ae1 100644 --- a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp +++ b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp @@ -599,9 +599,9 @@ void CVSymbolDumperImpl::visitProcSym(SymbolKind Kind, ProcSym &Proc) { void CVSymbolDumperImpl::visitScopeEndSym(SymbolKind Kind, ScopeEndSym &ScopeEnd) { if (Kind == SymbolKind::S_END) - W.startLine() << "BlockEnd\n"; + DictScope S(W, "BlockEnd"); else if (Kind == SymbolKind::S_PROC_ID_END) - W.startLine() << "ProcEnd\n"; + DictScope S(W, "ProcEnd"); else if (Kind == SymbolKind::S_INLINESITE_END) DictScope S(W, "InlineSiteEnd"); @@ -648,8 +648,8 @@ void CVSymbolDumperImpl::visitUDTSym(SymbolKind Kind, UDTSym &UDT) { void CVSymbolDumperImpl::visitUnknownSymbol(SymbolKind Kind, ArrayRef<uint8_t> Data) { DictScope S(W, "UnknownSym"); - W.printHex("Kind", unsigned(Kind)); - W.printHex("Size", Data.size()); + W.printEnum("Kind", Kind, makeArrayRef(SymbolTypeNames)); + W.printNumber("Length", Data.size()); } bool CVSymbolDumper::dump(const SymbolIterator::Record &Record) { |

