summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
index eac1a544d33..dc24507b1d1 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
@@ -22,23 +22,21 @@ PDBSymbolThunk::PDBSymbolThunk(const IPDBSession &PDBSession,
void PDBSymbolThunk::dump(raw_ostream &OS, int Indent,
PDB_DumpLevel Level) const {
- if (Level == PDB_DumpLevel::Compact) {
- OS.indent(Indent);
- PDB_ThunkOrdinal Ordinal = getThunkOrdinal();
- uint32_t RVA = getRelativeVirtualAddress();
- if (Ordinal == PDB_ThunkOrdinal::TrampIncremental) {
- OS << format_hex(RVA, 10);
- } else {
- OS << "[" << format_hex(RVA, 10);
- OS << " - " << format_hex(RVA + getLength(), 10) << "]";
- }
- OS << " thunk(" << Ordinal << ")";
- if (Ordinal == PDB_ThunkOrdinal::TrampIncremental)
- OS << " -> " << format_hex(getTargetRelativeVirtualAddress(), 10);
- OS << " ";
- std::string Name = getName();
- if (!Name.empty())
- OS << Name;
- OS << "\n";
+ OS.indent(Indent);
+ OS << "thunk ";
+ PDB_ThunkOrdinal Ordinal = getThunkOrdinal();
+ uint32_t RVA = getRelativeVirtualAddress();
+ if (Ordinal == PDB_ThunkOrdinal::TrampIncremental) {
+ OS << format_hex(RVA, 10);
+ } else {
+ OS << "[" << format_hex(RVA, 10);
+ OS << " - " << format_hex(RVA + getLength(), 10) << "]";
}
+ OS << " (" << Ordinal << ")";
+ if (Ordinal == PDB_ThunkOrdinal::TrampIncremental)
+ OS << " -> " << format_hex(getTargetRelativeVirtualAddress(), 10);
+ OS << " ";
+ std::string Name = getName();
+ if (!Name.empty())
+ OS << Name;
}
OpenPOWER on IntegriCloud