Convert the remaining _scc_s in the GHC source to pragmas
authorIan Lynagh <igloo@earth.li>
Thu, 16 Aug 2007 15:07:08 +0000 (15:07 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 16 Aug 2007 15:07:08 +0000 (15:07 +0000)
compiler/main/CodeOutput.lhs
compiler/main/HscMain.lhs

index a3d24e2..b155a35 100644 (file)
@@ -163,10 +163,10 @@ outputAsm dflags filenm flat_absC
 #ifndef OMIT_NATIVE_CODEGEN
 
   = do ncg_uniqs <- mkSplitUniqSupply 'n'
-       ncg_output_d <- _scc_ "NativeCodeGen" 
+       ncg_output_d <- {-# SCC "NativeCodeGen" #-}
                          nativeCodeGen dflags flat_absC ncg_uniqs
        dumpIfSet_dyn dflags Opt_D_dump_asm "Asm code" (docToSDoc ncg_output_d)
-       _scc_ "OutputAsm" doOutput filenm $
+       {-# SCC "OutputAsm" #-} doOutput filenm $
           \f -> printDoc LeftMode f ncg_output_d
   where
 
index ca2bb7e..346e804 100644 (file)
@@ -671,7 +671,7 @@ hscFileCheck hsc_env mod_summary compileToCore = do {
            -- RENAME and TYPECHECK
            -------------------
          (tc_msgs, maybe_tc_result) 
-               <- _scc_ "Typecheck-Rename" 
+               <- {-# SCC "Typecheck-Rename" #-}
                   tcRnModule hsc_env (ms_hsc_src mod_summary) 
                        True{-save renamed syntax-}
                        rdr_module