mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[PS4] Allow triple to reflect the new company name.
This commit is contained in:
parent
50ff35b458
commit
afb45f94ea
@ -479,6 +479,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
|
||||
.Case("apple", Triple::Apple)
|
||||
.Case("pc", Triple::PC)
|
||||
.Case("scei", Triple::SCEI)
|
||||
.Case("sie", Triple::SCEI)
|
||||
.Case("fsl", Triple::Freescale)
|
||||
.Case("ibm", Triple::IBM)
|
||||
.Case("img", Triple::ImaginationTechnologies)
|
||||
|
@ -111,6 +111,17 @@ TEST(TripleTest, ParsedIDs) {
|
||||
EXPECT_EQ(Triple::Linux, T.getOS());
|
||||
EXPECT_EQ(Triple::Musl, T.getEnvironment());
|
||||
|
||||
// PS4 has two spellings for the vendor.
|
||||
T = Triple("x86_64-scei-ps4");
|
||||
EXPECT_EQ(Triple::x86_64, T.getArch());
|
||||
EXPECT_EQ(Triple::SCEI, T.getVendor());
|
||||
EXPECT_EQ(Triple::PS4, T.getOS());
|
||||
|
||||
T = Triple("x86_64-sie-ps4");
|
||||
EXPECT_EQ(Triple::x86_64, T.getArch());
|
||||
EXPECT_EQ(Triple::SCEI, T.getVendor());
|
||||
EXPECT_EQ(Triple::PS4, T.getOS());
|
||||
|
||||
T = Triple("powerpc-ibm-aix");
|
||||
EXPECT_EQ(Triple::ppc, T.getArch());
|
||||
EXPECT_EQ(Triple::IBM, T.getVendor());
|
||||
|
Loading…
Reference in New Issue
Block a user