Improve DWARFDebugFrame::parse to also handle __eh_frame.
authorPete Cooper <peter_cooper@apple.com>
Fri, 18 Dec 2015 18:51:08 +0000 (18:51 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 18 Dec 2015 18:51:08 +0000 (18:51 +0000)
commit6c97f4c7d7570fd79695ba822456c3dbe48c752a
tree7a3b19f20a2d0efa19ff51a9ef08e6a5d254f9c0
parenta45c0e0d4ec2c93aad4c095b5b99974abfeef0af
Improve DWARFDebugFrame::parse to also handle __eh_frame.

LLVM MC has single methods which can handle the output of EH frame and DWARF CIE's and FDE's.

This code improves DWARFDebugFrame::parse to do the same for parsing.

This also allows llvm-objdump to support the --dwarf=frames option which objdump supports.  This
option dumps the .eh_frame section using the new code in DWARFDebugFrame::parse.

http://reviews.llvm.org/D15535

Reviewed by Rafael Espindola.

llvm-svn: 256008
llvm/include/llvm/DebugInfo/DIContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
llvm/include/llvm/DebugInfo/PDB/PDBContext.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
llvm/lib/DebugInfo/PDB/PDBContext.cpp
llvm/test/tools/llvm-objdump/eh_frame-arm64.test
llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-objdump/llvm-objdump.h