diff options
author | Zachary Turner <zturner@google.com> | 2015-03-02 04:39:56 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-03-02 04:39:56 +0000 |
commit | 7797c726b9a864372553de4b640c540b1dae8251 (patch) | |
tree | 655a6b62386ef5b43759a072b66b3d588fea3ba1 /llvm/tools/llvm-pdbdump/CompilandDumper.cpp | |
parent | 968ceddca9a80197db8c785faf80fa9fc44ef7cd (diff) | |
download | bcm5719-llvm-7797c726b9a864372553de4b640c540b1dae8251.tar.gz bcm5719-llvm-7797c726b9a864372553de4b640c540b1dae8251.zip |
[llvm-pdbdump] Many minor fixes and improvements
A short list of some of the improvements:
1) Now supports -all command line argument, which implies many
other command line arguments to simplify usage.
2) Now supports -no-compiler-generated command line argument to
exclude compiler generated types.
3) Prints base class list.
4) -class-definitions implies -types.
5) Proper display of bitfields.
6) Can now distinguish between struct/class/interface/union.
And a few other minor tweaks.
llvm-svn: 230933
Diffstat (limited to 'llvm/tools/llvm-pdbdump/CompilandDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-pdbdump/CompilandDumper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbdump/CompilandDumper.cpp b/llvm/tools/llvm-pdbdump/CompilandDumper.cpp index accb2debd27..86bf32d77d8 100644 --- a/llvm/tools/llvm-pdbdump/CompilandDumper.cpp +++ b/llvm/tools/llvm-pdbdump/CompilandDumper.cpp @@ -124,7 +124,9 @@ void CompilandDumper::dump(const PDBSymbolThunk &Symbol) { << "[" << format_hex(RVA, 10) << " - " << format_hex(RVA + Symbol.getLength(), 10) << "]"; } - Printer << " (" << Ordinal << ") "; + Printer << " ("; + WithColor(Printer, PDB_ColorItem::Register).get() << Ordinal; + Printer << ") "; std::string Name = Symbol.getName(); if (!Name.empty()) WithColor(Printer, PDB_ColorItem::Identifier).get() << Name; |