[commit: ghc] wip/unnamed-addr: decorate declarations too (81b60ec)
git at git.haskell.org
git at git.haskell.org
Thu Jan 24 07:21:24 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/unnamed-addr
Link : http://ghc.haskell.org/trac/ghc/changeset/81b60ec752b4559ecf7438974d1e92e25e13e6d2/ghc
>---------------------------------------------------------------
commit 81b60ec752b4559ecf7438974d1e92e25e13e6d2
Author: Gabor Greif <ggreif at gmail.com>
Date: Thu Jan 24 08:20:53 2019 +0100
decorate declarations too
>---------------------------------------------------------------
81b60ec752b4559ecf7438974d1e92e25e13e6d2
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 7ef5f6e..602bbff 100644
--- a/compiler/llvmGen/Llvm/PpLlvm.hs
+++ b/compiler/llvmGen/Llvm/PpLlvm.hs
@@ -175,7 +175,8 @@ ppLlvmFunctionDecl (LlvmFunctionDecl n l c r varg p a)
args = hcat $ intersperse (comma <> space) $
map (\(t,a) -> ppr t <+> ppSpaceJoin a) p
in text "declare" <+> ppr l <+> ppr c <+> ppr r <+> char '@' <>
- ftext n <> lparen <> args <> ptext varg' <> rparen <> align $+$ newLine
+ ftext n <> lparen <> args <> ptext varg' <> rparen <>
+ text "unnamed_addr" <+> align $+$ newLine
-- | Print out a list of LLVM blocks.
More information about the ghc-commits
mailing list