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.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
index a7bd96a3479..eac1a544d33 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolThunk.cpp
@@ -25,11 +25,17 @@ void PDBSymbolThunk::dump(raw_ostream &OS, int Indent,
if (Level == PDB_DumpLevel::Compact) {
OS.indent(Indent);
PDB_ThunkOrdinal Ordinal = getThunkOrdinal();
- OS << "THUNK[" << Ordinal << "] ";
- OS << "[" << format_hex(getRelativeVirtualAddress(), 10);
+ 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 << "] ";
+ OS << " ";
std::string Name = getName();
if (!Name.empty())
OS << Name;
OpenPOWER on IntegriCloud