AArch64: Emit a call frame instruction for the shadow call stack register.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 16 Nov 2018 20:08:54 +0000 (20:08 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 16 Nov 2018 20:08:54 +0000 (20:08 +0000)
commit527024469a3629d717a968771b6249707b940fd7
treea29d79e7721e98db3c064d03a56d1d3bee5b5b3c
parent56ef9065326dc06f35d2a793aec65a067c45193b
AArch64: Emit a call frame instruction for the shadow call stack register.

When unwinding past a function that uses shadow call stack, we must
subtract 8 from the value of the x18 register. This patch causes us
to emit a call frame instruction that causes that to happen.

Differential Revision: https://reviews.llvm.org/D54609

llvm-svn: 347089
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
llvm/test/CodeGen/AArch64/shadow-call-stack.ll