summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-12-18 02:20:58 +0000
committerEric Christopher <echristo@gmail.com>2014-12-18 02:20:58 +0000
commit661f2d1ca1fb6d55cc54b71ec06b3310d07e229a (patch)
treecd8a48b6789fc41dfb829e5ef331a833bec98e1e /llvm/lib/CodeGen
parent560cc4fb44e11c0153f985639375598b53831e18 (diff)
downloadbcm5719-llvm-661f2d1ca1fb6d55cc54b71ec06b3310d07e229a.tar.gz
bcm5719-llvm-661f2d1ca1fb6d55cc54b71ec06b3310d07e229a.zip
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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TargetOptionsImpl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
index 618d903a090..d2dd59b0236 100644
--- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp
+++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
@@ -58,3 +58,10 @@ StringRef TargetOptions::getTrapFunctionName() const {
StringRef TargetOptions::getCFIFuncName() const {
return CFIFuncName;
}
+
+/// getABIName - If this returns a non-empty string this represents the
+/// textual name of the ABI that we want the backend to use, e.g. o32, or
+/// aapcs-linux.
+StringRef TargetOptions::getABIName() const {
+ return ABIName;
+}
OpenPOWER on IntegriCloud