[commit: ghc] master: handle MO_Touch, and generate no code for it. (a1ebe37)

Simon Marlow <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a1ebe37d8394e35d0a29f21511626d0895db634a

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

commit a1ebe37d8394e35d0a29f21511626d0895db634a
Author: Simon Marlow <[email protected]>
Date:   Mon Nov 12 14:01:22 2012 +0000

    handle MO_Touch, and generate no code for it.

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

 compiler/llvmGen/LlvmCodeGen/CodeGen.hs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs
index ef9fc2b..fd9d701 100644
--- a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs
+++ b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs
@@ -184,6 +184,9 @@ genCall env (PrimTarget MO_WriteBarrier) _ _
  | getLlvmVer env > 29 = barrier env
  | otherwise           = oldBarrier env
 
+genCall env (PrimTarget MO_Touch) _ _
+ = return (env, nilOL, [])
+
 -- Handle popcnt function specifically since GHC only really has i32 and i64
 -- types and things like Word8 are backed by an i32 and just present a logical
 -- i8 range. So we must handle conversions from i32 to i8 explicitly as LLVM
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.