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)
commit3c9c3bf29125d42c1d6aeda4076ecc11aefd7a9a
treeb7455ffbc39492e316e8fef5c3da6a1d9c8fce18
parent4aba1843f2bbb421d8c4018be67b234019d72a2f
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256008 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DIContext.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
include/llvm/DebugInfo/PDB/PDBContext.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
lib/DebugInfo/PDB/PDBContext.cpp
test/tools/llvm-objdump/eh_frame-arm64.test
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h