modules: move (public) datatypes into a new module
[mate.git] / Mate / X86CodeGen.hs
index d2c9caf19d69cce0c19928b8ce542b9af8a4d90f..21d2b3c88db364fa3711d520d3ee1a3f858a3fc3 100644 (file)
@@ -23,6 +23,7 @@ import Harpy
 import Harpy.X86Disassembler
 
 import Mate.BasicBlocks
+import Mate.Types
 import Mate.Utilities
 
 foreign import ccall "dynamic"
@@ -119,10 +120,6 @@ type BBStarts = M.Map BlockID Int
 
 type CompileInfo = (EntryPoint, BBStarts, Int, CMap)
 
--- Word32 = point of method call in generated code
--- MethodInfo = relevant information about callee
-type CMap = M.Map Word32 MethodInfo
-
 
 emitFromBB :: Class Resolved -> MapBB -> CodeGen e s (CompileInfo, [Instruction])
 emitFromBB cls hmap =  do