Switch krait to use -mcpu=cortex-a15 for assembler tool invocations.
authorStephen Hines <srhines@google.com>
Fri, 4 Mar 2016 20:57:22 +0000 (20:57 +0000)
committerStephen Hines <srhines@google.com>
Fri, 4 Mar 2016 20:57:22 +0000 (20:57 +0000)
commite3f91e31abc0fda2a3fccc4e7c5583f2d7635fc2
treeeb19905332ae8123a3044fe13157b97a4eb6e4f0
parent4a56e3831d896da9a98d1570e70397516f564336
Switch krait to use -mcpu=cortex-a15 for assembler tool invocations.

Summary:
Using -no-integrated-as causes -mcpu=krait to be transformed into
-march=armv7-a today. This precludes the assembler from using
instructions like sdiv, which are present for krait. Cortex-a15 is the
closest subset of functionality for krait, so we should switch the
assembler to use that instead.

Reviewers: cfe-commits, apazos, weimingz

Subscribers: aemerson

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

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