File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -925,7 +925,6 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
925
925
case Triple::mips64:
926
926
case Triple::mips64el:
927
927
case Triple::mips:
928
- case Triple::mipsel:
929
928
case Triple::msp430:
930
929
case Triple::nvptx64:
931
930
case Triple::nvptx:
@@ -950,6 +949,11 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
950
949
case Triple::xtensa:
951
950
return Triple::ELF;
952
951
952
+ case Triple::mipsel:
953
+ if (T.isOSWindows ())
954
+ return Triple::COFF;
955
+ return Triple::ELF;
956
+
953
957
case Triple::ppc64:
954
958
case Triple::ppc:
955
959
if (T.isOSAIX ())
Original file line number Diff line number Diff line change @@ -2468,6 +2468,10 @@ TEST(TripleTest, NormalizeWindows) {
2468
2468
Triple::normalize (" i686-pc-windows-elf-elf" ));
2469
2469
2470
2470
EXPECT_TRUE (Triple (" x86_64-pc-win32" ).isWindowsMSVCEnvironment ());
2471
+
2472
+ EXPECT_TRUE (Triple (Triple::normalize (" mipsel-windows-msvccoff" )).isOSBinFormatCOFF ());
2473
+ EXPECT_TRUE (Triple (Triple::normalize (" mipsel-windows-msvc" )).isOSBinFormatCOFF ());
2474
+ EXPECT_TRUE (Triple (Triple::normalize (" mipsel-windows-gnu" )).isOSBinFormatCOFF ());
2471
2475
}
2472
2476
2473
2477
TEST (TripleTest, NormalizeAndroid) {
You can’t perform that action at this time.
0 commit comments