[AArch64] Pass subtarget feature "+reserve-x18" instead of passing backend
authorAkira Hatanaka <ahatanaka@apple.com>
Sat, 25 Jul 2015 00:18:00 +0000 (00:18 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Sat, 25 Jul 2015 00:18:00 +0000 (00:18 +0000)
commit4e3c86fe99d74b3c8dd2736683dcdc92f2c2124c
tree8d02ec2df80fcf342d19fe27c53cd9b9f2f00089
parentc34eed3045ce303518a4570bbbd88d56bdfb9913
[AArch64] Pass subtarget feature "+reserve-x18" instead of passing backend
option "-aarch64-reserve-x18".

This change is needed since backend options do not make it to the backend
when doing LTO and are not capable of changing the behavior of code-gen
passes on a per-function basis.

rdar://problem/21529937

Differential Revision: http://reviews.llvm.org/D11462

llvm-svn: 243185
clang/lib/Driver/Tools.cpp