[project @ 2005-04-03 21:35:02 by simonmar]
authorsimonmar <unknown>
Sun, 3 Apr 2005 21:35:02 +0000 (21:35 +0000)
committersimonmar <unknown>
Sun, 3 Apr 2005 21:35:02 +0000 (21:35 +0000)
#include "MachDeps.h" to get WORD_SIZE_IN_BITS (fixes profasm breakages)

ghc/compiler/nativeGen/MachCodeGen.hs

index c93b678..7837e20 100644 (file)
@@ -15,6 +15,7 @@ module MachCodeGen ( cmmTopCodeGen, InstrBlock ) where
 
 #include "HsVersions.h"
 #include "nativeGen/NCG.h"
+#include "MachDeps.h"
 
 -- NCG stuff:
 import MachInstrs
@@ -1228,7 +1229,7 @@ getRegister (CmmLit lit)
     in
        return (Any rep code)
 
-getRegister other = panic "getRegister(x86)"
+getRegister other = pprPanic "getRegister(x86)" (ppr other)
 
 
 intLoadCode :: (Operand -> Operand -> Instr) -> CmmExpr