[commit: ghc] wip/llvm-3.6: llvmGen: LLVM 3.6 makes alias grammar consistent (8a3790b)

git at git.haskell.org git at git.haskell.org
Mon Jan 19 23:16:48 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/llvm-3.6
Link       : http://ghc.haskell.org/trac/ghc/changeset/8a3790ba01e5229dbc4c65ba3f3dfda2782c83a6/ghc

>---------------------------------------------------------------

commit 8a3790ba01e5229dbc4c65ba3f3dfda2782c83a6
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Thu Nov 27 22:39:55 2014 +0100

    llvmGen: LLVM 3.6 makes alias grammar consistent
    
    It used to be that the alias grammar was,
    
        @<Name> = [Visibility] [DLLStorageClass] [ThreadLocal] [unnamed_addr] alias [Linkage] <AliaseeTy> @<Aliasee>
    
    As of LLVM 3.6 it is now,
    
        @<Name> = [Linkage] [Visibility] [DLLStorageClass] [ThreadLocal] [unnamed_addr] alias <AliaseeTy> @<Aliasee>
    
    Namely the linkage has been moved to be consistent with the other
    global variable types.


>---------------------------------------------------------------

8a3790ba01e5229dbc4c65ba3f3dfda2782c83a6
 compiler/llvmGen/Llvm/PpLlvm.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/llvmGen/Llvm/PpLlvm.hs b/compiler/llvmGen/Llvm/PpLlvm.hs
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



More information about the ghc-commits mailing list