X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegAllocLinear.hs;h=14d7eba5a4e77792e03016c5880b5abf36ae4075;hb=e67f462df4fd68fea18777b419d6ffc9ff7bfd99;hp=b333c68d5d4aa4447d9aa4831301b3dbe90f174a;hpb=727fae32ea0b6ca6ebdf1b3137649813e4d7ac3d;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegAllocLinear.hs b/compiler/nativeGen/RegAllocLinear.hs index b333c68..14d7eba 100644 --- a/compiler/nativeGen/RegAllocLinear.hs +++ b/compiler/nativeGen/RegAllocLinear.hs @@ -97,10 +97,11 @@ import Cmm hiding (RegSet) import Digraph import Unique ( Uniquable(getUnique), Unique ) import UniqSet -import LazyUniqFM +import UniqFM import UniqSupply import Outputable import State +import FastString import Data.Maybe import Data.List @@ -1108,12 +1109,9 @@ pprStats code statss -- ----------------------------------------------------------------------------- -- Utils -#ifdef DEBUG -my_fromJust s p Nothing = pprPanic ("fromJust: " ++ s) p +my_fromJust :: String -> SDoc -> Maybe a -> a my_fromJust _ _ (Just x) = x -#else -my_fromJust _ _ = fromJust -#endif +my_fromJust s p Nothing = pprPanic ("fromJust: " ++ s) p lookItUp :: Uniquable b => String -> UniqFM a -> b -> a lookItUp str fm x = my_fromJust str (ppr (getUnique x)) (lookupUFM fm x)