Commit cc787101 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Remove unused IF_OS_* CPP definitions

parent 1f52e5fd
...@@ -13,22 +13,8 @@ ...@@ -13,22 +13,8 @@
#define COMMA , #define COMMA ,
-- - - - - - - - - - - - - - - - - - - - - -
#if i386_TARGET_ARCH #if i386_TARGET_ARCH
# define IF_ARCH_i386(x,y) x # define IF_ARCH_i386(x,y) x
#else #else
# define IF_ARCH_i386(x,y) y # define IF_ARCH_i386(x,y) y
#endif #endif
-- - - - - - - - - - - - - - - - - - - - - -
#if linux_TARGET_OS
# define IF_OS_linux(x,y) x
#else
# define IF_OS_linux(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - -
#if darwin_TARGET_OS
# define IF_OS_darwin(x,y) x
#else
# define IF_OS_darwin(x,y) y
#endif
#endif
...@@ -318,10 +318,10 @@ pprInstr :: Platform -> Instr -> Doc ...@@ -318,10 +318,10 @@ pprInstr :: Platform -> Instr -> Doc
pprInstr _ (COMMENT _) = empty -- nuke 'em pprInstr _ (COMMENT _) = empty -- nuke 'em
{- {-
pprInstr _ (COMMENT s) pprInstr platform (COMMENT s) =
IF_OS_linux( if platformOS platform == OSLinux
((<>) (ptext (sLit "# ")) (ftext s)), then ptext (sLit "# ") <> ftext s
((<>) (ptext (sLit "; ")) (ftext s))) else ptext (sLit "; ") <> ftext s
-} -}
pprInstr platform (DELTA d) pprInstr platform (DELTA d)
= pprInstr platform (COMMENT (mkFastString ("\tdelta = " ++ show d))) = pprInstr platform (COMMENT (mkFastString ("\tdelta = " ++ show d)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment