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)
commit603d316517c75ced68ca29a234cfd17c12826f1b
tree76cf1d696f7c0eaa5c109569a88d611ca8474b78
parent9d2d218f49653c4816d5d2671b71b6736b75598f
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.

llvm-svn: 222057
llvm/lib/Target/ARM/ARMFrameLowering.cpp
llvm/test/CodeGen/ARM/dwarf-unwind.ll