ARM: improve WoA ABI conformance for frame register
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 May 2014 04:12:52 +0000 (04:12 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 May 2014 04:12:52 +0000 (04:12 +0000)
commitbf3e78f5728f116067f8a373a522c221ccdaa08f
tree01c99ddf277668f30adadf98056a7d821961ac22
parent4da07c20388a2f3ec8dcf8f2910cde86cb228cbf
ARM: improve WoA ABI conformance for frame register

Windows on ARM uses R11 for the frame pointer even though the environment is a
pure Thumb-2, thumb-only environment.  Replicate this behaviour to improve
Windows ABI compatibility.  This register is used for fast stack walking, and
thus is part of the Windows ABI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseRegisterInfo.cpp
test/CodeGen/ARM/Windows/frame-register.ll [new file with mode: 0644]
test/CodeGen/ARM/frame-register.ll [new file with mode: 0644]