AArch64: Default AArch64Subtarget::ReserveX18 to true on darwin
authorJustin Bogner <mail@justinbogner.com>
Fri, 13 Nov 2015 23:05:46 +0000 (23:05 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 13 Nov 2015 23:05:46 +0000 (23:05 +0000)
commit2814318a4506ed48c47b5b7504cfde8807797359
tree8dd56d766aea5eeed09778de9948365fa71b392b
parentf724d184fbad1f71b4f01f600a875c1b79d43738
AArch64: Default AArch64Subtarget::ReserveX18 to true on darwin

Darwin reserves x18, so it's never ABI compliant to generate code that
uses it. Set the default value based on the OS part of the triple
rather than forcing front-ends to set the +reserve-x18 target feature
in order to build correct code for Darwin.

This will make r243310 redundant, so I'll revert that shortly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64Subtarget.cpp