summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-14 03:54:28 +0000
committerZachary Turner <zturner@google.com>2015-02-14 03:54:28 +0000
commit26ebe3fbcd1518c1acb26efcf2b8e89e3c031bea (patch)
tree1a73305ac95c4d5a4c8fcc234711efeb065089d5 /llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
parent52c9f881ded240536047784b005b01e8242dddad (diff)
downloadbcm5719-llvm-26ebe3fbcd1518c1acb26efcf2b8e89e3c031bea.tar.gz
bcm5719-llvm-26ebe3fbcd1518c1acb26efcf2b8e89e3c031bea.zip
llvm-pdbdump: Only dump whitelisted global symbols.
Dumping the global scope contains a lot of very uninteresting things and is generally polluted with a lot of random junk. Furthermore, it dumps values unsorted, making it hard to read. This patch dumps known interesting types only, and as a side effect sorts the list by symbol type. llvm-svn: 229232
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
index 49caedc719a..817279bc3db 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolFunc.cpp
@@ -31,6 +31,10 @@ std::unique_ptr<PDBSymbolTypeFunctionSig> PDBSymbolFunc::getSignature() const {
void PDBSymbolFunc::dump(raw_ostream &OS, int Indent,
PDB_DumpLevel Level) const {
OS << stream_indent(Indent);
+ // if (getName() == "__crtCreateThreadpoolWait") {
+ // RawSymbol->dump(OS, Indent+2, Level);
+ // OS.flush();
+ //}
if (Level >= PDB_DumpLevel::Normal) {
uint32_t FuncStart = getRelativeVirtualAddress();
uint32_t FuncEnd = FuncStart + getLength();
OpenPOWER on IntegriCloud