summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--llvm/include/llvm/ADT/Triple.h3
-rw-r--r--llvm/lib/Support/Triple.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h
index 7f7061ab01b..c5694617a14 100644
--- a/llvm/include/llvm/ADT/Triple.h
+++ b/llvm/include/llvm/ADT/Triple.h
@@ -74,7 +74,8 @@ public:
PC,
SCEI,
BGP,
- BGQ
+ BGQ,
+ Freescale
};
enum OSType {
UnknownOS,
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