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
a0020c1e
Commit
a0020c1e
authored
Jul 30, 2012
by
Simon Marlow
Browse files
fix merge bugs
parent
a2e0fbe5
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/nativeGen/SPARC/Ppr.hs
View file @
a0020c1e
...
...
@@ -68,7 +68,7 @@ pprNatCmmDecl proc@(CmmProc _ lbl (ListGraph blocks)) =
pprSectionHeader
Text
$$
(
(
if
platformHasSubsectionsViaSymbols
platform
then
ppr
CLabel
(
mkDeadStripPreventer
info_lbl
)
<>
char
':'
then
ppr
(
mkDeadStripPreventer
info_lbl
)
<>
char
':'
else
empty
)
$$
vcat
(
map
pprData
info
)
$$
pprLabel
info_lbl
...
...
@@ -85,9 +85,9 @@ pprNatCmmDecl proc@(CmmProc _ lbl (ListGraph blocks)) =
-- so that the linker will not think it is unreferenced and dead-strip
-- it. That's why the label is called a DeadStripPreventer (_dsp).
text
"
\t
.long "
<+>
ppr
CLabel
info_lbl
<+>
ppr
info_lbl
<+>
char
'-'
<+>
ppr
CLabel
(
mkDeadStripPreventer
info_lbl
)
<+>
ppr
(
mkDeadStripPreventer
info_lbl
)
else
empty
)
...
...
compiler/nativeGen/X86/Ppr.hs
View file @
a0020c1e
...
...
@@ -67,7 +67,7 @@ pprNatCmmDecl proc@(CmmProc top_info lbl (ListGraph blocks)) =
Just
(
Statics
info_lbl
info
)
->
sdocWithPlatform
$
\
platform
->
(
if
platformHasSubsectionsViaSymbols
platform
then
ppr
CLabel
(
mkDeadStripPreventer
info_lbl
)
<>
char
':'
then
ppr
(
mkDeadStripPreventer
info_lbl
)
<>
char
':'
else
empty
)
$$
vcat
(
map
(
pprBasicBlock
top_info
)
blocks
)
$$
-- above: Even the first block gets a label, because with branch-chain
...
...
@@ -81,9 +81,9 @@ pprNatCmmDecl proc@(CmmProc top_info lbl (ListGraph blocks)) =
-- so that the linker will not think it is unreferenced and dead-strip
-- it. That's why the label is called a DeadStripPreventer (_dsp).
text
"
\t
.long "
<+>
ppr
CLabel
info_lbl
<+>
ppr
info_lbl
<+>
char
'-'
<+>
ppr
CLabel
(
mkDeadStripPreventer
info_lbl
)
<+>
ppr
(
mkDeadStripPreventer
info_lbl
)
else
empty
)
$$
pprSizeDecl
info_lbl
...
...
@@ -107,7 +107,7 @@ pprBasicBlock info_env (BasicBlock blockid instrs)
Just
(
Statics
info_lbl
info
)
->
pprSectionHeader
Text
$$
vcat
(
map
pprData
info
)
$$
pprLabel
platform
info_lbl
pprLabel
info_lbl
pprDatas
::
(
Alignment
,
CmmStatics
)
->
SDoc
pprDatas
(
align
,
(
Statics
lbl
dats
))
...
...
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