Make flang driver stuff work on macOS

6bf55804 added special-case code for TY_PP_Fortran to
ToolChain::LookupTypeForExtension(), but
Darwin::LookupTypeForExtension() overrode that method without calling
the superclass implementation.

Make it call the superclass implementation to fix things.

Differential Revision: https://reviews.llvm.org/D69636
This commit is contained in:
Nico Weber committed 2019-10-31 07:34:32 -04:00
1 parent a780b94cd1
commit 4b6597f498
2 files changed
+1 -5

No files matched your search

+1 -1
View File
@@ -737,7 +737,7 @@ Darwin::Darwin(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
CudaInstallation(D, Triple, Args) {}
types::ID MachO::LookupTypeForExtension(StringRef Ext) const {
types::ID Ty = types::lookupTypeForExtension(Ext);
types::ID Ty = ToolChain::lookupTypeForExtension(Ext);
// Darwin always preprocesses assembly files (unless -x is used explicitly).
if (Ty == types::TY_PP_Asm)
-4
View File
@@ -1,7 +1,3 @@
! D63607 made mac builders unhappy by failing this test, and it isn't
! yet obvious why. Mark as unsupported as a temporary measure.
! UNSUPPORTED: darwin
! Check that flang -fc1 is invoked when in --driver-mode=flang.
! This is a copy of flang_ucase.F90 because the driver has logic in it which