Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
caf23cc6
Commit
caf23cc6
authored
Feb 15, 2009
by
Ben.Lippmeier@anu.edu.au
Browse files
NCG: validate fixes for i386-darwin
parent
72636a93
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/nativeGen/X86/Ppr.hs
View file @
caf23cc6
...
...
@@ -43,7 +43,9 @@ import Outputable (panic, Outputable)
import
Data.Word
#
if
i386_TARGET_ARCH
&&
darwin_TARGET_OS
import
Data.Bits
#
endif
-- -----------------------------------------------------------------------------
-- Printing this stuff out
...
...
@@ -96,7 +98,13 @@ pprData :: CmmStatic -> Doc
pprData
(
CmmAlign
bytes
)
=
pprAlign
bytes
pprData
(
CmmDataLabel
lbl
)
=
pprLabel
lbl
pprData
(
CmmString
str
)
=
pprASCII
str
#
if
darwin_TARGET_OS
pprData
(
CmmUninitialised
bytes
)
=
ptext
(
sLit
".space "
)
<>
int
bytes
#
else
pprData
(
CmmUninitialised
bytes
)
=
ptext
(
sLit
".skip "
)
<>
int
bytes
#
endif
pprData
(
CmmStaticLit
lit
)
=
pprDataItem
lit
pprGloblDecl
::
CLabel
->
Doc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment