summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Terei <davidterei@gmail.com>2011-11-18 15:44:14 -0800
committerDavid Terei <davidterei@gmail.com>2011-11-22 11:05:14 -0800
commit3475561ee6210f8c570b5bbc47ed9355e435279f (patch)
treefa4195d5c4bc6ea5599391800377a986d69ca3f4
parent1f9ca81cff59ed6c0078437a992f40c13d2667c7 (diff)
downloadhaskell-3475561ee6210f8c570b5bbc47ed9355e435279f.tar.gz
Tabs -> Spaces + cleaning
-rw-r--r--compiler/ghci/ByteCodeItbls.lhs14
-rw-r--r--compiler/main/DriverPhases.hs18
-rw-r--r--compiler/main/DriverPipeline.hs8
3 files changed, 5 insertions, 35 deletions
diff --git a/compiler/ghci/ByteCodeItbls.lhs b/compiler/ghci/ByteCodeItbls.lhs
index 3c1cbb5d02..ed94526aa2 100644
--- a/compiler/ghci/ByteCodeItbls.lhs
+++ b/compiler/ghci/ByteCodeItbls.lhs
@@ -4,22 +4,8 @@
ByteCodeItbls: Generate infotables for interpreter-made bytecodes
\begin{code}
-{-# OPTIONS -fno-warn-tabs #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and
--- detab the module (please do the detabbing in a separate patch). See
--- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
--- for details
-
{-# OPTIONS -optc-DNON_POSIX_SOURCE #-}
-{-# OPTIONS -w #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and fix
--- any warnings in the module. See
--- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
--- for details
-
module ByteCodeItbls ( ItblEnv, ItblPtr(..), itblCode, mkITbls
, StgInfoTable(..)
) where
diff --git a/compiler/main/DriverPhases.hs b/compiler/main/DriverPhases.hs
index 6ece67e8c8..29dbb58413 100644
--- a/compiler/main/DriverPhases.hs
+++ b/compiler/main/DriverPhases.hs
@@ -7,19 +7,12 @@
--
-----------------------------------------------------------------------------
-{-# OPTIONS -fno-warn-tabs #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and
--- detab the module (please do the detabbing in a separate patch). See
--- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
--- for details
-
module DriverPhases (
HscSource(..), isHsBoot, hscSourceString,
Phase(..),
happensBefore, eqPhase, anyHsc, isStopLn,
- startPhase, -- :: String -> Phase
- phaseInputExt, -- :: Phase -> String
+ startPhase,
+ phaseInputExt,
isHaskellishSuffix,
isHaskellSrcSuffix,
@@ -37,7 +30,7 @@ module DriverPhases (
isExtCoreFilename,
isDynLibFilename,
isHaskellUserSrcFilename,
- isSourceFilename -- :: FilePath -> Bool
+ isSourceFilename
) where
#include "HsVersions.h"
@@ -125,8 +118,8 @@ eqPhase HCc HCc = True
eqPhase Splitter Splitter = True
eqPhase SplitAs SplitAs = True
eqPhase As As = True
-eqPhase LlvmOpt LlvmOpt = True
-eqPhase LlvmLlc LlvmLlc = True
+eqPhase LlvmOpt LlvmOpt = True
+eqPhase LlvmLlc LlvmLlc = True
eqPhase LlvmMangle LlvmMangle = True
eqPhase CmmCpp CmmCpp = True
eqPhase Cmm Cmm = True
@@ -281,4 +274,3 @@ isHaskellUserSrcFilename f = isHaskellUserSrcSuffix (drop 1 $ takeExtension f)
isDynLibFilename f = isDynLibSuffix (drop 1 $ takeExtension f)
isSourceFilename f = isSourceSuffix (drop 1 $ takeExtension f)
-
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index e5906585ff..6228d109d3 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1000,11 +1000,6 @@ runPhase Cmm input_fn dflags
io $ hscCompileCmmFile hsc_env input_fn
- -- XXX: catch errors above and convert them into ghcError? Original
- -- code was:
- --
- --when (not ok) $ ghcError (PhaseFailed "cmm" (ExitFailure 1))
-
return (next_phase, output_fn)
-----------------------------------------------------------------------------
@@ -1063,7 +1058,6 @@ runPhase cc_phase input_fn dflags
| otherwise = "-O"
-- Decide next phase
-
let next_phase = As
output_fn <- phaseOutputFilename next_phase
@@ -1136,8 +1130,6 @@ runPhase cc_phase input_fn dflags
return (next_phase, output_fn)
- -- ToDo: postprocess the output from gcc
-
-----------------------------------------------------------------------------
-- Splitting phase