Use OPTIONS rather than OPTIONS_GHC for pragmas
[ghc-hetmet.git] / compiler / codeGen / CgBindery.lhs
index 7447222..600589b 100644 (file)
@@ -5,6 +5,13 @@
 \section[CgBindery]{Utility functions related to doing @CgBindings@}
 
 \begin{code}
+{-# 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/CodingStyle#Warnings
+-- for details
+
 module CgBindery (
        CgBindings, CgIdInfo,
        StableLoc, VolatileLoc,
@@ -280,8 +287,7 @@ getCgIdInfo id
            name = idName id
        in
        if isExternalName name then do
-           this_pkg <- getThisPackage
-           let ext_lbl = CmmLit (CmmLabel (mkClosureLabel this_pkg name))
+           let ext_lbl = CmmLit (CmmLabel (mkClosureLabel name))
            return (stableIdInfo id ext_lbl (mkLFImported id))
        else
        if isVoidArg (idCgRep id) then