Hi Rafael
Turns out all the code I wrote in llvm-objdump to handle __eh_frame entries wasn't needed. As you pointed out, we should handle the --debug=frames option in llvm-objdump and that led me to the code which can already parse CIEs and FDEs.
This patch deletes printMachOEHFrameSection from MachODump.cpp and instead improves DWARFDebugFrame::parse to also handle __eh_frame. It also hooks up the command line options to llvm-objdump and teaches the dwarf dumping code that it may be dumping EH data so should look at the .eh_frame section.
I think improving DWARFDebugFrame::parse makes sense as we already have single MC methods to emit both EH and DWARF frames (FrameEmitterImpl::EmitCIE, FrameEmitterImpl::EmitFDE), so parsing both EH and DWARF frames is analogous to this.
Just EHFrame maybe?