mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 22:58:50 +00:00
Add MIPS Technologies to the vendors in llvm::Triple.
This is a prerequisite for checking for 'mti' and 'img' in a consistent way in clang. Previously 'img' could use Triple::getVendor() but 'mti' could only use Triple::getVendorName(). llvm-svn: 213381
This commit is contained in:
parent
be8b73df94
commit
b7f4e6b616
@ -105,6 +105,7 @@ public:
|
||||
Freescale,
|
||||
IBM,
|
||||
ImaginationTechnologies,
|
||||
MipsTechnologies,
|
||||
NVIDIA,
|
||||
CSR
|
||||
};
|
||||
|
@ -117,6 +117,7 @@ const char *Triple::getVendorTypeName(VendorType Kind) {
|
||||
case Freescale: return "fsl";
|
||||
case IBM: return "ibm";
|
||||
case ImaginationTechnologies: return "img";
|
||||
case MipsTechnologies: return "mti";
|
||||
case NVIDIA: return "nvidia";
|
||||
case CSR: return "csr";
|
||||
}
|
||||
@ -298,6 +299,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
|
||||
.Case("fsl", Triple::Freescale)
|
||||
.Case("ibm", Triple::IBM)
|
||||
.Case("img", Triple::ImaginationTechnologies)
|
||||
.Case("mti", Triple::MipsTechnologies)
|
||||
.Case("nvidia", Triple::NVIDIA)
|
||||
.Case("csr", Triple::CSR)
|
||||
.Default(Triple::UnknownVendor);
|
||||
|
Loading…
Reference in New Issue
Block a user