[PATCH] Generate DWARF stack frame information for ARM/Thumb functions [2nd attempt].

Keith Walker kwalker at arm.com
Wed Feb 5 09:35:09 PST 2014


Currently when compiling with -g for ARM or Thumb no DWARF stack frame information is generated.

This patch is to address this situation, by generating the .cfi_ directives in ARMFrameLowering::emitPrologue() (similarly to the other target that generate DWARF stack frame information in *FrameLowering::emitPrologue() ).

Now that EHABI exception handling has been enabled by default, the DWARF stack frame information for ARM/Thumb is generated from ARMException when the generation of debugging information has been requested.

I would appreciate some guidance on whether I have taken the correct approach and whether there is anything I may have missed.

http://llvm-reviews.chandlerc.com/D2706

Files:
  lib/CodeGen/AsmPrinter/ARMException.cpp
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/AsmPrinter/DwarfException.h
  lib/Target/ARM/ARMFrameLowering.cpp
  lib/Target/ARM/Thumb1FrameLowering.cpp
  test/CodeGen/ARM/debug-frame-large-stack.ll
  test/CodeGen/ARM/debug-frame-no-debug.ll
  test/CodeGen/ARM/debug-frame-vararg.ll
  test/CodeGen/ARM/debug-frame.ll
  test/CodeGen/ARM/debug-info-sreg2.ll
  test/CodeGen/ARM/indirectbr-2.ll
  test/CodeGen/ARM/indirectbr.ll
  test/CodeGen/ARM/interrupt-attr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2706.1.patch
Type: text/x-patch
Size: 58435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140205/807c3fd2/attachment.bin>


More information about the llvm-commits mailing list