X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=Mate%2FX86CodeGen.hs;fp=Mate%2FX86CodeGen.hs;h=8ac7e7dc79d8b86e1097bd2b94d1d02d06cd89a2;hp=661837f75008b1175f685f7dc058fa69bb0977d2;hb=b4cb8e6b7b66e82580b0637ec5a9d9b7531121b4;hpb=2ac2a68eb5b709caa636d1a9a56a40268d378550 diff --git a/Mate/X86CodeGen.hs b/Mate/X86CodeGen.hs index 661837f..8ac7e7d 100644 --- a/Mate/X86CodeGen.hs +++ b/Mate/X86CodeGen.hs @@ -63,7 +63,7 @@ emitFromBB cls method = do hmap = rawMapBB method getLabel :: BlockID -> [(BlockID, Label)] -> Label - getLabel _ [] = error "label not found!" + getLabel bid [] = error $ "label " ++ show bid ++ " not found" getLabel i ((x,l):xs) = if i==x then l else getLabel i xs efBB :: (BlockID, BasicBlock) -> TrapMap -> BBStarts -> [(BlockID, Label)] -> CodeGen e s (TrapMap, BBStarts)