ARM/AArch64: Attach the FrameSetup MIFlag to CFI instructions.
authorAdrian Prantl <aprantl@apple.com>
Tue, 16 Dec 2014 00:20:49 +0000 (00:20 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 16 Dec 2014 00:20:49 +0000 (00:20 +0000)
commit6f059afde6e3b689006c7491640fbdedc2dcfdf7
tree9babd8f06cee35ffef9635ae2300863ebed38ee8
parent3a0f6b52db8d15662cad825fcb8156e2d215f10e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224294 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/Target/AArch64/AArch64FrameLowering.cpp
lib/Target/ARM/ARMFrameLowering.cpp
test/DebugInfo/AArch64/cfi-eof-prologue.ll [new file with mode: 0644]
test/DebugInfo/ARM/cfi-eof-prologue.ll [new file with mode: 0644]