summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-06-01 18:18:23 +0000
committerAdrian Prantl <aprantl@apple.com>2017-06-01 18:18:23 +0000
commitf4bc1f77b78481a01e6a2339a83cb25d2c261390 (patch)
tree280c194169d1e6845802f031d276f319e05292df /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentfb9662ae71a2d9d5787229513a2aa78ee6299b93 (diff)
downloadbcm5719-llvm-f4bc1f77b78481a01e6a2339a83cb25d2c261390.tar.gz
bcm5719-llvm-f4bc1f77b78481a01e6a2339a83cb25d2c261390.zip
[DWARF] Introduce Dump Options
This commit introduces a structure that holds all the flags that control the pretty printing of dwarf output. Patch by Spyridoula Gravani! Differential Revision: https://reviews.llvm.org/D33749 llvm-svn: 304446
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 18fa0e07408..6a915157090 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -2064,7 +2064,10 @@ static void DumpObject(ObjectFile *o, const Archive *a = nullptr) {
if (DwarfDumpType != DIDT_Null) {
std::unique_ptr<DIContext> DICtx(new DWARFContextInMemory(*o));
// Dump the complete DWARF structure.
- DICtx->dump(outs(), DwarfDumpType, true /* DumpEH */);
+ DIDumpOptions DumpOpts;
+ DumpOpts.DumpType = DwarfDumpType;
+ DumpOpts.DumpEH = true;
+ DICtx->dump(outs(), DumpOpts);
}
}
OpenPOWER on IntegriCloud