mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
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
This commit is contained in:
parent
d28587407f
commit
5f30d6c688
@ -74,7 +74,8 @@ public:
|
||||
PC,
|
||||
SCEI,
|
||||
BGP,
|
||||
BGQ
|
||||
BGQ,
|
||||
Freescale
|
||||
};
|
||||
enum OSType {
|
||||
UnknownOS,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user