Add a new string member to the TargetOptions struct for the name
authorEric Christopher <echristo@gmail.com>
Thu, 18 Dec 2014 02:20:58 +0000 (02:20 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 18 Dec 2014 02:20:58 +0000 (02:20 +0000)
commitc559ba72517d912ed4cd45ee6097b240c3234086
treec2ff3175261754c4333426311cc28ee6668eea12
parent360cbd4839bc54cd3b73a4607f4a39afc37815b3
Add a new string member to the TargetOptions struct for the name
of the abi we should be using. For targets that don't use the
option there's no change, otherwise this allows external users
to set the ABI via string and avoid some of the -backend-option
pain in clang.

Use this option to move the ABI for the ARM port from the
Subtarget to the TargetMachine and update the testcases
accordingly since it's no longer valid to set via -mattr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224492 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/CodeGen/CommandFlags.h
include/llvm/Target/TargetOptions.h
lib/CodeGen/TargetOptionsImpl.cpp
lib/Target/ARM/ARM.td
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/ARM/ARMTargetMachine.h
test/CodeGen/ARM/arm-abi-attr.ll
test/CodeGen/ARM/atomic-64bit.ll
test/CodeGen/ARM/dagcombine-concatvector.ll
test/CodeGen/ARM/emit-big-cst.ll
test/CodeGen/ARM/tail-call.ll