diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-06-06 23:28:45 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-06-06 23:28:45 +0000 |
commit | 318d1195f2c59974b39c819d61a4fabcccd1170b (patch) | |
tree | e85ddce365160ac2506f5ccfb634be16063f9bed /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | |
parent | abd32bad374808ec5fd7ebd1b13f680879790ded (diff) | |
download | bcm5719-llvm-318d1195f2c59974b39c819d61a4fabcccd1170b.tar.gz bcm5719-llvm-318d1195f2c59974b39c819d61a4fabcccd1170b.zip |
Introduce -brief command line option to llvm-dwarfdump
This patch introduces a new command line option, called brief, to
llvm-dwarfdump. When -brief is used, the attribute forms for the
.debug_info section will not be emitted to output.
Patch by Spyridoula Gravani!
rdar://problem/21474365
Differential Revision: https://reviews.llvm.org/D33867
llvm-svn: 304844
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index a781aa1ca7d..42ab48808f9 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -221,14 +221,14 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpOptions DumpOpts){ if (DumpType == DIDT_All || DumpType == DIDT_Info) { OS << "\n.debug_info contents:\n"; for (const auto &CU : compile_units()) - CU->dump(OS); + CU->dump(OS, DumpOpts); } if ((DumpType == DIDT_All || DumpType == DIDT_InfoDwo) && getNumDWOCompileUnits()) { OS << "\n.debug_info.dwo contents:\n"; for (const auto &DWOCU : dwo_compile_units()) - DWOCU->dump(OS); + DWOCU->dump(OS, DumpOpts); } if ((DumpType == DIDT_All || DumpType == DIDT_Types) && getNumTypeUnits()) { |