[llvm-pdbdump] Support dynamic load address and external symbols.
[oota-llvm.git] / tools / llvm-pdbdump / VariableDumper.cpp
index 030610c8c58c23b0828451d613934b0014a652cb..e5665b5fcafa4a42f1c8ad9087a027724dd1248e 100644 (file)
@@ -44,7 +44,7 @@ void VariableDumper::start(const PDBSymbolData &Var) {
     Printer.NewLine();
     Printer << "data [";
     WithColor(Printer, PDB_ColorItem::Address).get()
-        << format_hex(Var.getRelativeVirtualAddress(), 10);
+        << format_hex(Var.getVirtualAddress(), 10);
     Printer << "] ";
     WithColor(Printer, PDB_ColorItem::Keyword).get() << "static ";
     dumpSymbolTypeAndName(*VarType, Var.getName());