diff options
author | Zachary Turner <zturner@google.com> | 2015-05-01 20:24:26 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-05-01 20:24:26 +0000 |
commit | e5cb269352c6534dd79d70e44e71211736f603eb (patch) | |
tree | 1527fa91f3548e159f506fe1f7ba465b865fb434 /llvm/tools/llvm-pdbdump/VariableDumper.cpp | |
parent | e6892c8149dcddf34f3f704d2ba0a712fb5ac89a (diff) | |
download | bcm5719-llvm-e5cb269352c6534dd79d70e44e71211736f603eb.tar.gz bcm5719-llvm-e5cb269352c6534dd79d70e44e71211736f603eb.zip |
[llvm-pdbdump] Support dynamic load address and external symbols.
This patch adds the --load-address command line option to
llvm-pdbdump, which dumps all addresses assuming the module has
loaded at the specified address.
Additionally, this patch adds an option to llvm-pdbdump to support
dumping of public symbols (i.e. symbols with external linkage).
llvm-svn: 236342
Diffstat (limited to 'llvm/tools/llvm-pdbdump/VariableDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-pdbdump/VariableDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbdump/VariableDumper.cpp b/llvm/tools/llvm-pdbdump/VariableDumper.cpp index 030610c8c58..e5665b5fcaf 100644 --- a/llvm/tools/llvm-pdbdump/VariableDumper.cpp +++ b/llvm/tools/llvm-pdbdump/VariableDumper.cpp @@ -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()); |