Reapply "[dwarfdump] Add support for dumping accelerator tables."
authorFrederic Riss <friss@apple.com>
Fri, 14 Nov 2014 16:15:53 +0000 (16:15 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 14 Nov 2014 16:15:53 +0000 (16:15 +0000)
commite26d79386b644ba538aa3debdfd2f4207df6ad8a
tree2f14793961e00c783d31633d75db003066795150
parentb3625eb44501c241ad711d0f96f954fda8582c8a
Reapply "[dwarfdump] Add support for dumping accelerator tables."

This reverts commit r221842 which was a revert of r221836 and of the
test parts of r221837.

This new version fixes an UB bug pointed out by David (along with
addressing some other review comments), makes some dumping more
resilient to broken input data and forces the accelerator tables
to be dumped in the tests where we use them (this decision is
platform specific otherwise).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222003 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DIContext.h
lib/DebugInfo/CMakeLists.txt
lib/DebugInfo/DWARFAcceleratorTable.cpp [new file with mode: 0644]
lib/DebugInfo/DWARFAcceleratorTable.h [new file with mode: 0644]
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFContext.h
test/DebugInfo/Inputs/gmlt.ll
test/DebugInfo/cross-cu-inlining.ll
test/DebugInfo/dwarfdump-accel.test [new file with mode: 0644]
tools/llvm-dwarfdump/llvm-dwarfdump.cpp