[ARM][Debug Info] Restore emitting of .cfi_def_cfa_offset for functions without stack...
authorSergey Dmitrouk <sdmitrouk@accesssoftek.com>
Wed, 8 Apr 2015 10:10:12 +0000 (10:10 +0000)
committerSergey Dmitrouk <sdmitrouk@accesssoftek.com>
Wed, 8 Apr 2015 10:10:12 +0000 (10:10 +0000)
commita7512d1d4abcb0d182354a20bff9739256711397
tree59b33543de2f8804c9f767955a59203863ce99b8
parent39fedc9aa2fda6223e15b13fe43fbc89f1e2de44
[ARM][Debug Info] Restore emitting of .cfi_def_cfa_offset for functions without stack frame

Summary: Looks like new code from [[ http://reviews.llvm.org/rL222057 | rL222057 ]] doesn't account for early `return` in `ARMFrameLowering::emitPrologue`, which leads to loosing `.cfi_def_cfa_offset` directive for functions without stack frame.

Reviewers: echristo, rengolin, asl, t.p.northover

Reviewed By: t.p.northover

Subscribers: llvm-commits, rengolin, aemerson

Differential Revision: http://reviews.llvm.org/D8606

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/debug-info-no-frame.ll [new file with mode: 0644]