ARM: refactor .cfi_def_cfa_offset emission.
authorTim Northover <tnorthover@apple.com>
Fri, 14 Nov 2014 22:45:33 +0000 (22:45 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 14 Nov 2014 22:45:33 +0000 (22:45 +0000)
commit52e76186d3b2234c938bb57b046c47613ac18d88
tree49a87ed40a7a9f9b3675fe469028f6e67ba04fce
parentd96893fd3dcd3d93a35e07d18d0d1454c0d075f2
ARM: refactor .cfi_def_cfa_offset emission.

We use to track quite a few "adjusted" offsets through the FrameLowering code
to account for changes in the prologue instructions as we went and allow the
emission of correct CFA annotations. However, we were missing a couple of cases
and the code was almost impenetrable.

It's easier to just add any stack-adjusting instruction to a list and emit them
together.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/dwarf-unwind.ll