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)
commit661f2d1ca1fb6d55cc54b71ec06b3310d07e229a
treecd8a48b6789fc41dfb829e5ef331a833bec98e1e
parent560cc4fb44e11c0153f985639375598b53831e18
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.

llvm-svn: 224492
13 files changed:
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/TargetOptionsImpl.cpp
llvm/lib/Target/ARM/ARM.td
llvm/lib/Target/ARM/ARMSubtarget.cpp
llvm/lib/Target/ARM/ARMSubtarget.h
llvm/lib/Target/ARM/ARMTargetMachine.cpp
llvm/lib/Target/ARM/ARMTargetMachine.h
llvm/test/CodeGen/ARM/arm-abi-attr.ll
llvm/test/CodeGen/ARM/atomic-64bit.ll
llvm/test/CodeGen/ARM/dagcombine-concatvector.ll
llvm/test/CodeGen/ARM/emit-big-cst.ll
llvm/test/CodeGen/ARM/tail-call.ll