X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FnativeGen%2FAsmCodeGen.lhs;h=ae91b62c255bfce873d0b7ff2ada46dc4a127819;hp=b607434ddff0f4f41fe476d9604ddef788f94f96;hb=86add45dbfb6f962b65e371143dd467ae783f9e7;hpb=622c3cfe2b3ebde891981544c0eea525eaa55e6f diff --git a/compiler/nativeGen/AsmCodeGen.lhs b/compiler/nativeGen/AsmCodeGen.lhs index b607434..ae91b62 100644 --- a/compiler/nativeGen/AsmCodeGen.lhs +++ b/compiler/nativeGen/AsmCodeGen.lhs @@ -199,6 +199,8 @@ nativeCodeGen dflags h us cmms } ArchPPC_64 -> panic "nativeCodeGen: No NCG for PPC 64" + ArchUnknown -> + panic "nativeCodeGen: No NCG for unknown arch" nativeCodeGen' :: (Instruction instr, Outputable instr) => DynFlags @@ -422,7 +424,7 @@ cmmNativeGen dflags ncgImpl us cmm count = {-# SCC "RegAlloc" #-} initUs usLive $ liftM unzip - $ mapUs Linear.regAlloc withLiveness + $ mapUs (Linear.regAlloc dflags) withLiveness dumpIfSet_dyn dflags Opt_D_dump_asm_regalloc "Registers allocated"