optllvm broken on master?

Dr. ERDI Gergo gergo at erdi.hu
Thu Nov 20 10:26:25 UTC 2014


Hi,

Tests fail on master when run the optllvm way, e.g.:

/usr/bin/opt: /tmp/ghc16190_0/ghc16190_2.ll:611:25: error: expected 'global' or 'constant'
@newCAF$alias = private alias i8* @newCAF

I think it's the change in d87fa34:

index 7307725..cdc407c 100644
--- a/compiler/llvmGen/Llvm/PpLlvm.hs
+++ b/compiler/llvmGen/Llvm/PpLlvm.hs
@@ -80,7 +80,7 @@ ppLlvmGlobal (LMGlobal var@(LMGlobalVar _ _ link x a c) 
dat) =
          const_link = case c of
            Global   -> ppr link <+> text "global"
            Constant -> ppr link <+> text "constant"
-          Alias    -> text "alias" <+> ppr link
+          Alias    -> ppr link <+> text "alias"

      in ppAssignment var $ const_link <+> rhs <> sect <> align
         $+$ newLine



-- 

   .--= ULLA! =-----------------.
    \     http://gergo.erdi.hu   \
     `---= gergo at erdi.hu =-------'
If it ain't broke, I can fix it.


More information about the ghc-devs mailing list