X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FDriverPhases.hs;h=118b23abfc4e4bcf34230f61fe2d8e1b31c01564;hp=6e945314cb1e109ef4b92fd34b2eaaef9ea83686;hb=fb38b8bab2b531ca7ac4ea28ad5b259a00e3759b;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/compiler/main/DriverPhases.hs b/compiler/main/DriverPhases.hs index 6e94531..118b23a 100644 --- a/compiler/main/DriverPhases.hs +++ b/compiler/main/DriverPhases.hs @@ -71,6 +71,7 @@ data Phase | Cpp HscSource | HsPp HscSource | Hsc HscSource + | Ccpp | Cc | HCc -- Haskellised C (as opposed to vanilla C) compilation | Mangle -- assembly mangling, now done by a separate script. @@ -99,6 +100,7 @@ eqPhase (Unlit _) (Unlit _) = True eqPhase (Cpp _) (Cpp _) = True eqPhase (HsPp _) (HsPp _) = True eqPhase (Hsc _) (Hsc _) = True +eqPhase Ccpp Ccpp = True eqPhase Cc Cc = True eqPhase HCc HCc = True eqPhase Mangle Mangle = True @@ -129,6 +131,7 @@ nextPhase Mangle = SplitMangle nextPhase SplitMangle = As nextPhase As = SplitAs nextPhase SplitAs = StopLn +nextPhase Ccpp = As nextPhase Cc = As nextPhase CmmCpp = Cmm nextPhase Cmm = HCc @@ -145,10 +148,10 @@ startPhase "hspp" = Hsc HsSrcFile startPhase "hcr" = Hsc ExtCoreFile startPhase "hc" = HCc startPhase "c" = Cc -startPhase "cpp" = Cc +startPhase "cpp" = Ccpp startPhase "C" = Cc -startPhase "cc" = Cc -startPhase "cxx" = Cc +startPhase "cc" = Ccpp +startPhase "cxx" = Ccpp startPhase "raw_s" = Mangle startPhase "split_s" = SplitMangle startPhase "s" = As @@ -171,6 +174,7 @@ phaseInputExt (Hsc _) = "hspp" -- intermediate only -- because runPipeline uses the StopBefore phase to pick the -- output filename. That could be fixed, but watch out. phaseInputExt HCc = "hc" +phaseInputExt Ccpp = "cpp" phaseInputExt Cc = "c" phaseInputExt Mangle = "raw_s" phaseInputExt SplitMangle = "split_s" -- not really generated @@ -179,10 +183,6 @@ phaseInputExt SplitAs = "split_s" -- not really generated phaseInputExt CmmCpp = "cmm" phaseInputExt Cmm = "cmmcpp" phaseInputExt StopLn = "o" -#ifdef ILX -phaseInputExt Ilx2Il = "ilx" -phaseInputExt Ilasm = "il" -#endif haskellish_src_suffixes = haskellish_user_src_suffixes ++ [ "hspp", "hscpp", "hcr", "cmm" ]