mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -68,8 +68,9 @@ public:
|
||||
auto BaseIter = RawSymbol->findChildren(T::Tag);
|
||||
return llvm::make_unique<ConcreteSymbolEnumerator<T>>(std::move(BaseIter));
|
||||
}
|
||||
|
||||
std::unique_ptr<IPDBEnumSymbols> findAllChildren(PDB_SymType Type) const;
|
||||
std::unique_ptr<IPDBEnumSymbols> findAllChildren() const;
|
||||
|
||||
std::unique_ptr<IPDBEnumSymbols>
|
||||
findChildren(PDB_SymType Type, StringRef Name,
|
||||
PDB_NameSearchFlags Flags) const;
|
||||
|
@ -36,6 +36,10 @@ public:
|
||||
FORWARD_SYMBOL_METHOD(getSignature)
|
||||
FORWARD_SYMBOL_METHOD(getSymbolsFileName)
|
||||
FORWARD_SYMBOL_METHOD(getSymIndexId)
|
||||
|
||||
private:
|
||||
void dumpChildren(raw_ostream &OS, StringRef Label, PDB_SymType ChildType,
|
||||
int Indent) const;
|
||||
};
|
||||
} // namespace llvm
|
||||
|
||||
|
Reference in New Issue
Block a user