Restrict .type directives to Linux targets only
authorClemens Fruhwirth <clemens@endorphin.org>
Sat, 30 Jun 2007 08:22:43 +0000 (08:22 +0000)
committerClemens Fruhwirth <clemens@endorphin.org>
Sat, 30 Jun 2007 08:22:43 +0000 (08:22 +0000)
compiler/nativeGen/PprMach.hs

index ba8a5d9..02ab265 100644 (file)
@@ -694,12 +694,12 @@ pprGloblDecl lbl
 
 pprTypeAndSizeDecl :: CLabel -> Doc
 pprTypeAndSizeDecl lbl
-#if mingw32_TARGET_OS
-  = empty
-#else
+#if linux_TARGET_OS
   | not (externallyVisibleCLabel lbl) = empty
   | otherwise = ptext SLIT(".type ") <>
                pprCLabel_asm lbl <> ptext SLIT(", @object")
+#else
+  = empty
 #endif
 
 pprLabel :: CLabel -> Doc