summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-13 07:40:03 +0000
committerZachary Turner <zturner@google.com>2015-02-13 07:40:03 +0000
commita952c49c2047c2506d7b313cbeff82843c775f7e (patch)
tree307e859f3f7e2105072e6912c99267cc1bd31d0a /llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp
parent383d7ae0bd01d92df28d8436fbd336186d8d499b (diff)
downloadbcm5719-llvm-a952c49c2047c2506d7b313cbeff82843c775f7e.tar.gz
bcm5719-llvm-a952c49c2047c2506d7b313cbeff82843c775f7e.zip
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/PDBSymbolExe.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp
index 4f999d9138e..ddf6efc846f 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp
@@ -27,17 +27,17 @@ void PDBSymbolExe::dump(raw_ostream &OS, int Indent,
PDB_DumpLevel Level) const {
std::string FileName(getSymbolsFileName());
- OS << "Summary for " << FileName << "\n";
+ OS << stream_indent(Indent) << "Summary for " << FileName << "\n";
uint64_t FileSize = 0;
if (!llvm::sys::fs::file_size(FileName, FileSize))
- OS << " Size: " << FileSize << " bytes\n";
+ OS << stream_indent(Indent + 2) << "Size: " << FileSize << " bytes\n";
else
- OS << " Size: (Unable to obtain file size)\n";
+ OS << stream_indent(Indent + 2) << "Size: (Unable to obtain file size)\n";
PDB_UniqueId Guid = getGuid();
- OS << " Guid: " << Guid << "\n";
- OS << " Age: " << getAge() << "\n";
- OS << " Attributes: ";
+ OS << stream_indent(Indent + 2) << "Guid: " << Guid << "\n";
+ OS << stream_indent(Indent + 2) << "Age: " << getAge() << "\n";
+ OS << stream_indent(Indent + 2) << "Attributes: ";
if (hasCTypes())
OS << "HasCTypes ";
if (hasPrivateSymbols())
@@ -48,6 +48,7 @@ void PDBSymbolExe::dump(raw_ostream &OS, int Indent,
auto ChildrenEnum = getChildStats(Stats);
OS << stream_indent(Indent + 2) << "Children: " << Stats << "\n";
while (auto Child = ChildrenEnum->getNext()) {
- Child->dump(OS, Indent+2, PDB_DumpLevel::Compact);
+ Child->dump(OS, Indent + 4, PDB_DumpLevel::Normal);
+ OS << "\n";
}
}
OpenPOWER on IntegriCloud