summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2019-01-01 14:45:03 +0100
committerGabor Greif <ggreif@gmail.com>2019-01-01 17:10:48 +0100
commite2403e6e163ecf86f63f7ee2e20868c7709bded9 (patch)
tree311270ac38ed94d8e3f2ceaf39f865fe4ceadf4e
parent53b3ef8823f5f5358aeae0f9768ebcd654525a47 (diff)
downloadhaskell-wip/T15155a.tar.gz
revert asserts, they are uselesswip/T15155a
-rw-r--r--compiler/llvmGen/LlvmCodeGen/Data.hs5
-rw-r--r--compiler/nativeGen/PPC/Ppr.hs5
-rw-r--r--compiler/nativeGen/SPARC/Ppr.hs5
-rw-r--r--compiler/nativeGen/X86/Ppr.hs5
4 files changed, 8 insertions, 12 deletions
diff --git a/compiler/llvmGen/LlvmCodeGen/Data.hs b/compiler/llvmGen/LlvmCodeGen/Data.hs
index a8b977d715..c90b3384d6 100644
--- a/compiler/llvmGen/LlvmCodeGen/Data.hs
+++ b/compiler/llvmGen/LlvmCodeGen/Data.hs
@@ -22,7 +22,6 @@ import Platform
import FastString
import Outputable
-import Util ( debugIsOn )
-- ----------------------------------------------------------------------------
-- * Constants
@@ -44,8 +43,8 @@ linkage lbl = if externallyVisibleCLabel lbl
-- | Pass a CmmStatic section to an equivalent Llvm code.
genLlvmData :: (Section, CmmStatics) -> LlvmM LlvmData
-- See note [emit-time elimination of static indirections]
-genLlvmData (_, Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, a, b])
- | {-ASSERT( (a,b) == (0,0) )-} lbl == mkIndStaticInfoLabel
+genLlvmData (_, Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, _, _])
+ | lbl == mkIndStaticInfoLabel
, let labelInd (CmmLabelOff l _) = Just l
labelInd (CmmLabel l) = Just l
labelInd _ = Nothing
diff --git a/compiler/nativeGen/PPC/Ppr.hs b/compiler/nativeGen/PPC/Ppr.hs
index 77c7ee343d..333874dfd0 100644
--- a/compiler/nativeGen/PPC/Ppr.hs
+++ b/compiler/nativeGen/PPC/Ppr.hs
@@ -34,7 +34,6 @@ import Platform
import FastString
import Outputable
import DynFlags
-import Util ( debugIsOn )
import Data.Word
import Data.Int
@@ -125,8 +124,8 @@ pprBasicBlock info_env (BasicBlock blockid instrs)
pprDatas :: CmmStatics -> SDoc
-- See note [emit-time elimination of static indirections]
-pprDatas (Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, a, b])
- | {-ASSERT( (a,b) == (0,0) )-} lbl == mkIndStaticInfoLabel
+pprDatas (Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, _, _])
+ | lbl == mkIndStaticInfoLabel
, let labelInd (CmmLabelOff l _) = Just l
labelInd (CmmLabel l) = Just l
labelInd _ = Nothing
diff --git a/compiler/nativeGen/SPARC/Ppr.hs b/compiler/nativeGen/SPARC/Ppr.hs
index a5348e5e99..3861468c4c 100644
--- a/compiler/nativeGen/SPARC/Ppr.hs
+++ b/compiler/nativeGen/SPARC/Ppr.hs
@@ -50,7 +50,6 @@ import Outputable
import Platform
import FastString
import Data.Word
-import Util ( debugIsOn )
-- -----------------------------------------------------------------------------
-- Printing this stuff out
@@ -108,8 +107,8 @@ pprBasicBlock info_env (BasicBlock blockid instrs)
pprDatas :: CmmStatics -> SDoc
-- See note [emit-time elimination of static indirections]
-pprDatas (Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, a, b])
- | {-ASSERT( (a,b) == (0,0) )-} lbl == mkIndStaticInfoLabel
+pprDatas (Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, _, _])
+ | lbl == mkIndStaticInfoLabel
, let labelInd (CmmLabelOff l _) = Just l
labelInd (CmmLabel l) = Just l
labelInd _ = Nothing
diff --git a/compiler/nativeGen/X86/Ppr.hs b/compiler/nativeGen/X86/Ppr.hs
index b763a32d9e..71675adb2a 100644
--- a/compiler/nativeGen/X86/Ppr.hs
+++ b/compiler/nativeGen/X86/Ppr.hs
@@ -45,7 +45,6 @@ import Unique ( pprUniqueAlways )
import Platform
import FastString
import Outputable
-import Util ( debugIsOn )
import Data.Word
@@ -155,8 +154,8 @@ pprBasicBlock info_env (BasicBlock blockid instrs)
pprDatas :: (Alignment, CmmStatics) -> SDoc
-- See note [emit-time elimination of static indirections]
-pprDatas (_, Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, a, b])
- | {-ASSERT( (a,b) == (0,0) )-} lbl == mkIndStaticInfoLabel
+pprDatas (_, Statics alias [CmmStaticLit (CmmLabel lbl), CmmStaticLit ind, _, _])
+ | lbl == mkIndStaticInfoLabel
, let labelInd (CmmLabelOff l _) = Just l
labelInd (CmmLabel l) = Just l
labelInd _ = Nothing