summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/SPARC/CodeGen/CondCode.hs
diff options
context:
space:
mode:
authormarkus <markus.grosser@tum.de>2015-07-07 16:59:40 +0200
committerBen Gamari <ben@smart-cactus.org>2015-07-07 16:59:40 +0200
commit31580e2c81543a58c0d352154c6109d843978cdf (patch)
tree70704c6c72747ccc1e965cac1bc2f0cd3dba9e40 /compiler/nativeGen/SPARC/CodeGen/CondCode.hs
parentf753cf11eb9e310b54b08d9a1ea1d11540d8eb69 (diff)
downloadhaskell-31580e2c81543a58c0d352154c6109d843978cdf.tar.gz
Fix todo in compiler/nativeGen: Rename Size to Format
This commit renames the Size module in the native code generator to Format, as proposed by a todo, as well as adjusting parameter names in other modules that use it. Test Plan: validate Reviewers: austin, simonmar, bgamari Reviewed By: simonmar, bgamari Subscribers: bgamari, simonmar, thomie Projects: #ghc Differential Revision: https://phabricator.haskell.org/D865
Diffstat (limited to 'compiler/nativeGen/SPARC/CodeGen/CondCode.hs')
-rw-r--r--compiler/nativeGen/SPARC/CodeGen/CondCode.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/nativeGen/SPARC/CodeGen/CondCode.hs b/compiler/nativeGen/SPARC/CodeGen/CondCode.hs
index cb10830f46..e5fb82df4d 100644
--- a/compiler/nativeGen/SPARC/CodeGen/CondCode.hs
+++ b/compiler/nativeGen/SPARC/CodeGen/CondCode.hs
@@ -14,7 +14,7 @@ import SPARC.Cond
import SPARC.Imm
import SPARC.Base
import NCGMonad
-import Size
+import Format
import Cmm
@@ -98,7 +98,7 @@ condFltCode cond x y = do
code__2 =
if pk1 `cmmEqType` pk2 then
code1 `appOL` code2 `snocOL`
- FCMP True (cmmTypeSize pk1) src1 src2
+ FCMP True (cmmTypeFormat pk1) src1 src2
else if typeWidth pk1 == W32 then
code1 `snocOL` promote src1 `appOL` code2 `snocOL`
FCMP True FF64 tmp src2