[commit: ghc] wip/unnamed-addr: Make LLVM functions mergeable (4b3ed04)
git at git.haskell.org
git at git.haskell.org
Wed Jan 23 18:26:43 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/unnamed-addr
Link : http://ghc.haskell.org/trac/ghc/changeset/4b3ed04c7b4f323c0e1b6555f6a7b09dafc21a2d/ghc
>---------------------------------------------------------------
commit 4b3ed04c7b4f323c0e1b6555f6a7b09dafc21a2d
Author: Gabor Greif <ggreif at gmail.com>
Date: Wed Jan 23 19:25:17 2019 +0100
Make LLVM functions mergeable
>---------------------------------------------------------------
4b3ed04c7b4f323c0e1b6555f6a7b09dafc21a2d
compiler/llvmGen/Llvm/PpLlvm.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler/llvmGen/Llvm/PpLlvm.hs b/compiler/llvmGen/Llvm/PpLlvm.hs
index b534276..7ef5f6e 100644
--- a/compiler/llvmGen/Llvm/PpLlvm.hs
+++ b/compiler/llvmGen/Llvm/PpLlvm.hs
@@ -153,7 +153,8 @@ ppLlvmFunctionHeader (LlvmFunctionDecl n l c r varg p a) args
<> ftext n)
(zip p args)
in ppr l <+> ppr c <+> ppr r <+> char '@' <> ftext n <> lparen <>
- (hsep $ punctuate comma args') <> ptext varg' <> rparen <> align
+ (hsep $ punctuate comma args') <> ptext varg' <> rparen <>
+ text "unnamed_addr" <+> align
-- | Print out a list of function declaration.
ppLlvmFunctionDecls :: LlvmFunctionDecls -> SDoc
More information about the ghc-commits
mailing list