From: Hal Finkel Date: Tue, 28 Aug 2012 02:10:30 +0000 (+0000) Subject: Add the Freescale vendor to Triple. X-Git-Tag: android-x86-6.0-r1~179^2~3769 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d939cd68f40e6fa0ccd6bee6391374b66abd71a1;p=android-x86%2Fexternal-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162726 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 7f7061ab01b..c5694617a14 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -74,7 +74,8 @@ public: PC, SCEI, BGP, - BGQ + BGQ, + Freescale }; enum OSType { UnknownOS, diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index cca549dad56..b5b2de1461a 100644 --- a/lib/Support/Triple.cpp +++ b/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); }