summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-08-28 02:10:30 +0000
committerHal Finkel <hfinkel@anl.gov>2012-08-28 02:10:30 +0000
commitb5d177e5b0a4a3bf7d8a96bbe637724e31d86d07 (patch)
treed54db4e0b324534c1c53ed3e6f93029dc2b643ff /llvm/lib/Support
parent5ab378037f2fde6694ef926b26d3df7ea6b8334d (diff)
downloadbcm5719-llvm-b5d177e5b0a4a3bf7d8a96bbe637724e31d86d07.tar.gz
bcm5719-llvm-b5d177e5b0a4a3bf7d8a96bbe637724e31d86d07.zip
Add the Freescale vendor to Triple.
Adds the vendor 'fsl' (used by Freescale SDK) to Triple. This will allow clang support for Freescale cross-compile configurations. Patch by Tobias von Koch. llvm-svn: 162726
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index cca549dad56..b5b2de1461a 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -95,6 +95,7 @@ const char *Triple::getVendorTypeName(VendorType Kind) {
case SCEI: return "scei";
case BGP: return "bgp";
case BGQ: return "bgq";
+ case Freescale: return "fsl";
}
llvm_unreachable("Invalid VendorType!");
@@ -269,6 +270,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
.Case("scei", Triple::SCEI)
.Case("bgp", Triple::BGP)
.Case("bgq", Triple::BGQ)
+ .Case("fsl", Triple::Freescale)
.Default(Triple::UnknownVendor);
}
OpenPOWER on IntegriCloud