From 26ebe3fbcd1518c1acb26efcf2b8e89e3c031bea Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Sat, 14 Feb 2015 03:54:28 +0000 Subject: 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 --- llvm/lib/DebugInfo/PDB/PDBSymbol.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbol.cpp') diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbol.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbol.cpp index 358de799328..9ab8b936a5d 100644 --- a/llvm/lib/DebugInfo/PDB/PDBSymbol.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBSymbol.cpp @@ -108,7 +108,12 @@ void PDBSymbol::defaultDump(raw_ostream &OS, int Indent, PDB_SymType PDBSymbol::getSymTag() const { return RawSymbol->getSymTag(); } std::unique_ptr PDBSymbol::findAllChildren() const { - return RawSymbol->findChildren(PDB_SymType::None); + return findAllChildren(PDB_SymType::None); +} + +std::unique_ptr +PDBSymbol::findAllChildren(PDB_SymType Type) const { + return RawSymbol->findChildren(Type); } std::unique_ptr -- cgit v1.2.3