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 @@ -905,7 +905,6 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
905
905
case Triple::mips64:
906
906
case Triple::mips64el:
907
907
case Triple::mips:
908
- case Triple::mipsel:
909
908
case Triple::msp430:
910
909
case Triple::nvptx64:
911
910
case Triple::nvptx:
@@ -930,6 +929,11 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
930
929
case Triple::xtensa:
931
930
return Triple::ELF;
932
931
932
+ case Triple::mipsel:
933
+ if (T.isOSWindows ())
934
+ return Triple::COFF;
935
+ return Triple::ELF;
936
+
933
937
case Triple::ppc64:
934
938
case Triple::ppc:
935
939
if (T.isOSAIX ())
Original file line number Diff line number Diff line change @@ -2302,6 +2302,10 @@ TEST(TripleTest, NormalizeWindows) {
2302
2302
Triple::normalize (" i686-pc-windows-elf-elf" ));
2303
2303
2304
2304
EXPECT_TRUE (Triple (" x86_64-pc-win32" ).isWindowsMSVCEnvironment ());
2305
+
2306
+ EXPECT_TRUE (Triple (Triple::normalize (" mipsel-windows-msvccoff" )).isOSBinFormatCOFF ());
2307
+ EXPECT_TRUE (Triple (Triple::normalize (" mipsel-windows-msvc" )).isOSBinFormatCOFF ());
2308
+ EXPECT_TRUE (Triple (Triple::normalize (" mipsel-windows-gnu" )).isOSBinFormatCOFF ());
2305
2309
}
2306
2310
2307
2311
TEST (TripleTest, NormalizeAndroid) {
You can’t perform that action at this time.
0 commit comments