Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a0020c1e
Commit
a0020c1e
authored
Jul 30, 2012
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix merge bugs
parent
a2e0fbe5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
compiler/nativeGen/SPARC/Ppr.hs
compiler/nativeGen/SPARC/Ppr.hs
+3
-3
compiler/nativeGen/X86/Ppr.hs
compiler/nativeGen/X86/Ppr.hs
+4
-4
No files found.
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