diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp index 18b13b07607..6ebb8cae3a6 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp @@ -25,12 +25,19 @@ NativeSymbolEnumerator::NativeSymbolEnumerator( NativeSymbolEnumerator::~NativeSymbolEnumerator() {} -void NativeSymbolEnumerator::dump(raw_ostream &OS, int Indent) const { - NativeRawSymbol::dump(OS, Indent); - dumpSymbolField(OS, "classParentId", getClassParentId(), Indent); - dumpSymbolField(OS, "lexicalParentId", getLexicalParentId(), Indent); +void NativeSymbolEnumerator::dump(raw_ostream &OS, int Indent, + PdbSymbolIdField ShowIdFields, + PdbSymbolIdField RecurseIdFields) const { + NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields); + dumpSymbolIdField(OS, "classParentId", getClassParentId(), Indent, Session, + PdbSymbolIdField::ClassParent, ShowIdFields, + RecurseIdFields); + dumpSymbolIdField(OS, "lexicalParentId", getLexicalParentId(), Indent, + Session, PdbSymbolIdField::LexicalParent, ShowIdFields, + RecurseIdFields); dumpSymbolField(OS, "name", getName(), Indent); - dumpSymbolField(OS, "typeId", getTypeId(), Indent); + dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session, + PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields); dumpSymbolField(OS, "dataKind", getDataKind(), Indent); dumpSymbolField(OS, "locationType", getLocationType(), Indent); dumpSymbolField(OS, "constType", isConstType(), Indent); |