don't emit CmmComments for now
authorSimon Marlow <marlowsd@gmail.com>
Thu, 27 Nov 2008 09:01:45 +0000 (09:01 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 27 Nov 2008 09:01:45 +0000 (09:01 +0000)
  - if the string contains */, we need to fix it (demonstrated by
    building Cabal with -fvia-C)
  - the strings can get quite large, so we probably only want to
    inject comments when some debugging option is on.

compiler/cmm/PprC.hs

index 3db1be5..665122e 100644 (file)
@@ -192,7 +192,11 @@ pprStmt :: CmmStmt -> SDoc
 
 pprStmt stmt = case stmt of
     CmmNop       -> empty
-    CmmComment s -> (hang (ptext (sLit "/*")) 3 (ftext s)) $$ ptext (sLit "*/")
+    CmmComment s -> empty -- (hang (ptext (sLit "/*")) 3 (ftext s)) $$ ptext (sLit "*/")
+                          -- XXX if the string contains "*/", we need to fix it
+                          -- XXX we probably want to emit these comments when
+                          -- some debugging option is on.  They can get quite
+                          -- large.
 
     CmmAssign dest src -> pprAssign dest src