]> granicus.if.org Git - llvm/commit
llvm-dwarfdump: automatically dump both regular and .dwo variant of sections
authorAdrian Prantl <aprantl@apple.com>
Wed, 13 Sep 2017 22:09:01 +0000 (22:09 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 13 Sep 2017 22:09:01 +0000 (22:09 +0000)
commit494372f27efed07ee7236839e0e70d38a8dfbb00
treed23784e15e87c32a902b93cef0451299eac5317f
parent93b87c84ea0c5d659d58834fd1e6385fdb95c793
llvm-dwarfdump: automatically dump both regular and .dwo variant of sections

Since users typically don't really care about the .dwo / non.dwo
distinction, this patch makes it so dwarfdump --debug-<info,...> dumps
.debug_info and (if available) also .debug_info.dwo. This simplifies
the command line interface (I've removed all dwo-specific dump
options) and makes the tool friendlier to use.

Differential Revision: https://reviews.llvm.org/D37771

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313207 91177308-0d34-0410-b5e6-96231b3b80d8
28 files changed:
include/llvm/BinaryFormat/Dwarf.def
include/llvm/DebugInfo/DIContext.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
lib/DebugInfo/DWARF/DWARFContext.cpp
test/DebugInfo/Inputs/gmlt.ll
test/DebugInfo/X86/fission-inline.ll
test/DebugInfo/X86/fission-no-inlining.ll
test/DebugInfo/X86/fission-ranges.ll
test/DebugInfo/X86/generate-odr-hash.ll
test/DebugInfo/X86/gnu-public-names-gmlt.ll
test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll
test/DebugInfo/X86/split-dwarf-multiple-cu-hash.ll
test/DebugInfo/X86/split-dwarf-omit-empty.ll
test/DebugInfo/dwarfdump-dump-flags.test
test/DebugInfo/dwarfdump-dwp.test
test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s
test/MC/ARM/dwarf-asm-no-code.s
test/MC/ARM/dwarf-asm-nonstandard-section.s
test/MC/ARM/dwarf-asm-single-section.s
test/tools/dsymutil/X86/basic-linking-x86.test
test/tools/llvm-dwp/X86/empty.test
test/tools/llvm-dwp/X86/simple.test
tools/llvm-dwarfdump/llvm-dwarfdump.cpp