[ARM] Pass subtarget feature "+strict-align".
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 28 Jul 2015 22:26:45 +0000 (22:26 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 28 Jul 2015 22:26:45 +0000 (22:26 +0000)
commit7651dd8359c70035ee12a3bafdb25062bb3e90a2
tree9d1cd938bd8f215ef88c15f52951f96af30396d7
parentfc6eb071ab86d26ceb4e7e30240b400cc3c1789d
[ARM] Pass subtarget feature "+strict-align".

This commit changes the driver to save subtarget feature "+strict-align" to the
IR instead of using backend option "arm-strict-align". This is needed for LTO.

Also, move the logic in ARM backend that was deciding whether strict alignment
should be forced to the front-end.

rdar://problem/21529937

http://reviews.llvm.org/D11472

llvm-svn: 243489
clang/lib/Driver/Tools.cpp
clang/test/Driver/apple-kext-mkernel.c
clang/test/Driver/arm-alignment.c