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/PDBSymbolLabel.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/PDBSymbolLabel.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp index 50d1e2a..6b2c36e 100644 --- a/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp @@ -12,6 +12,8 @@ #include "llvm/DebugInfo/PDB/PDBSymbol.h" #include "llvm/DebugInfo/PDB/PDBSymbolLabel.h" +#include "llvm/Support/Format.h" + using namespace llvm; PDBSymbolLabel::PDBSymbolLabel(const IPDBSession &PDBSession, @@ -19,4 +21,8 @@ PDBSymbolLabel::PDBSymbolLabel(const IPDBSession &PDBSession, : PDBSymbol(PDBSession, std::move(Symbol)) {} void PDBSymbolLabel::dump(raw_ostream &OS, int Indent, - PDB_DumpLevel Level) const {} + PDB_DumpLevel Level) const { + OS << stream_indent(Indent); + OS << "label [" << format_hex(getRelativeVirtualAddress(), 10) << "] " + << getName(); +} |