diff options
| author | Ian Lynagh <igloo@earth.li> | 2011-07-15 19:06:04 +0100 |
|---|---|---|
| committer | Ian Lynagh <igloo@earth.li> | 2011-07-15 19:11:34 +0100 |
| commit | ec7b75121e09d4dc996fdba61efebff1a79536cb (patch) | |
| tree | b707d7473fd84ea1419d3232d1ca86ac46b19c66 /compiler/nativeGen/TargetReg.hs | |
| parent | 730301c60e6ccd9ed4fb248bcd2399f938a43d25 (diff) | |
| download | haskell-ec7b75121e09d4dc996fdba61efebff1a79536cb.tar.gz | |
Remove more defaultTargetPlatform uses
Diffstat (limited to 'compiler/nativeGen/TargetReg.hs')
| -rw-r--r-- | compiler/nativeGen/TargetReg.hs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/nativeGen/TargetReg.hs b/compiler/nativeGen/TargetReg.hs index 456ec2b3e5..089269785c 100644 --- a/compiler/nativeGen/TargetReg.hs +++ b/compiler/nativeGen/TargetReg.hs @@ -40,10 +40,6 @@ import qualified PPC.Regs as PPC import qualified SPARC.Regs as SPARC --- TODO: We shouldn't be using defaultTargetPlatform here. --- We should be passing DynFlags in instead, and looking at --- its targetPlatform. - targetVirtualRegSqueeze :: Platform -> RegClass -> VirtualReg -> FastInt targetVirtualRegSqueeze platform = case platformArch platform of @@ -95,8 +91,8 @@ targetMkVirtualReg platform targetRegDotColor :: Platform -> RealReg -> SDoc targetRegDotColor platform = case platformArch platform of - ArchX86 -> X86.regDotColor - ArchX86_64 -> X86.regDotColor + ArchX86 -> X86.regDotColor platform + ArchX86_64 -> X86.regDotColor platform ArchPPC -> PPC.regDotColor ArchSPARC -> SPARC.regDotColor ArchPPC_64 -> panic "targetRegDotColor ArchPPC_64" |
