diff options
author | Zachary Turner <zturner@google.com> | 2015-02-13 07:40:03 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-02-13 07:40:03 +0000 |
commit | a952c49c2047c2506d7b313cbeff82843c775f7e (patch) | |
tree | 307e859f3f7e2105072e6912c99267cc1bd31d0a /llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp | |
parent | 383d7ae0bd01d92df28d8436fbd336186d8d499b (diff) | |
download | llvm-a952c49c2047c2506d7b313cbeff82843c775f7e.zip llvm-a952c49c2047c2506d7b313cbeff82843c775f7e.tar.gz llvm-a952c49c2047c2506d7b313cbeff82843c775f7e.tar.bz2 |
llvm-pdbdump: Add more comprehensive dumping of symbol types.
In particular this patch adds the ability to dump complete
function signature information including argument types as
correctly formatted strings. A side effect of this is that
almost all symbol and meta types are now formatted.
llvm-svn: 229076
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp index 3c4be3a..9a1ca26 100644 --- a/llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBSymbolData.cpp @@ -26,7 +26,7 @@ void PDBSymbolData::dump(raw_ostream &OS, int Indent, OS << stream_indent(Indent); PDB_LocType Loc = getLocationType(); PDB_DataKind Kind = getDataKind(); - if (Level == PDB_DumpLevel::Compact) { + if (Level >= PDB_DumpLevel::Normal) { switch (Loc) { case PDB_LocType::Static: { uint32_t RVA = getRelativeVirtualAddress(); @@ -75,6 +75,7 @@ void PDBSymbolData::dump(raw_ostream &OS, int Indent, OS << "???"; } } + OS << "] "; if (Kind == PDB_DataKind::Member || Kind == PDB_DataKind::StaticMember) { uint32_t ClassId = getClassParentId(); @@ -86,6 +87,5 @@ void PDBSymbolData::dump(raw_ostream &OS, int Indent, OS << "::"; } } - OS << getName() << "\n"; - OS.flush(); + OS << getName(); }
\ No newline at end of file |