X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FllvmGen%2FLlvmCodeGen%2FData.hs;h=3e486a544f33e9d087bcd46d10a6abd208a1300a;hb=86add45dbfb6f962b65e371143dd467ae783f9e7;hp=3cf6cdac852f757d0e3feec0349e5791116b7ecd;hpb=3aadff5e31bf6b665cf7ae7606c94cdab85624d2;p=ghc-hetmet.git diff --git a/compiler/llvmGen/LlvmCodeGen/Data.hs b/compiler/llvmGen/LlvmCodeGen/Data.hs index 3cf6cda..3e486a5 100644 --- a/compiler/llvmGen/LlvmCodeGen/Data.hs +++ b/compiler/llvmGen/LlvmCodeGen/Data.hs @@ -13,7 +13,7 @@ import LlvmCodeGen.Base import BlockId import CLabel -import Cmm +import OldCmm import FastString import qualified Outputable @@ -47,7 +47,7 @@ genLlvmData (sec, CmmDataLabel lbl:xs) = getStatTypes (Right x) = getStatType x strucTy = LMStruct types - alias = LMAlias (label `appendFS` structStr) strucTy + alias = LMAlias ((label `appendFS` structStr), strucTy) in (lbl, sec, alias, static) genLlvmData _ = panic "genLlvmData: CmmData section doesn't start with label!" @@ -106,7 +106,7 @@ resDatas env (cmm : rest) (stats, globs) -- -- We check the 'LlvmEnv' to see if the reference has been defined in this -- module. If it has we can retrieve its type and make a pointer, otherwise --- we introduce a generic external defenition for the referenced label and +-- we introduce a generic external definition for the referenced label and -- then make a pointer. resData :: LlvmEnv -> UnresStatic -> (LlvmEnv, LlvmStatic, [Maybe LMGlobal])