Thumb1 frame lowering: Mark CFI instructions with the FrameSetup flag.
authorAdrian Prantl <aprantl@apple.com>
Mon, 22 Dec 2014 23:09:14 +0000 (23:09 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 22 Dec 2014 23:09:14 +0000 (23:09 +0000)
commitd9e64b6c08e32ee522e8a1f76c88a0c2bb028b90
tree8fd254a7927abf9b088a7d3f2990fb6aeec3e4fb
parente2f66ceed9a241d53158f077c9e887958290135f
Thumb1 frame lowering: Mark CFI instructions with the FrameSetup flag.

Followup to r224294:

ARM/AArch64: Attach the FrameSetup MIFlag to CFI instructions.
Debug info marks the first instruction without the FrameSetup flag
as being the end of the function prologue. Any CFI instructions in the
middle of the function prologue would cause debug info to end the prologue
too early and worse, attach the line number of the CFI instruction, which
incidentally is often 0.

llvm-svn: 224743
llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
llvm/test/DebugInfo/ARM/cfi-eof-prologue.ll