From 79bfe27d9157fb3d44b4cc64f168bc11191d3f9b Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 14 Apr 2015 07:32:17 -0500 Subject: Remove LlvmCodeGen panic variants. It's pretty irritating having hasktags with multiple top-level declarations with the same type; hasktags can't figure out which declaration you actually wanted. Signed-off-by: Edward Z. Yang Reviewed By: dterei, austin Differential Revision: https://phabricator.haskell.org/D819 --- compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'compiler/llvmGen/LlvmCodeGen/CodeGen.hs') diff --git a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs index 4f864b6904..3a7c05b535 100644 --- a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs +++ b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs @@ -24,8 +24,7 @@ import Hoopl import DynFlags import FastString import ForeignCall -import Outputable hiding ( panic, pprPanic ) -import qualified Outputable +import Outputable import Platform import OrdList import UniqSupply @@ -1673,14 +1672,6 @@ toIWord :: Integral a => DynFlags -> a -> LlvmVar toIWord dflags = mkIntLit (llvmWord dflags) --- | Error functions -panic :: String -> a -panic s = Outputable.panic $ "LlvmCodeGen.CodeGen." ++ s - -pprPanic :: String -> SDoc -> a -pprPanic s d = Outputable.pprPanic ("LlvmCodeGen.CodeGen." ++ s) d - - -- | Returns TBAA meta data by unique getTBAAMeta :: Unique -> LlvmM [MetaAnnot] getTBAAMeta u = do -- cgit v1.2.1