]> Joshua Wise's Git repositories - snipe.git/blobdiff - codegen/stringifier.sml
Remember to emit _l5_ functions.
[snipe.git] / codegen / stringifier.sml
index 7ab1e896067557c65a0a10c6eee3b76955fe0a03..b01beba8809e09ec313c37dbbe8fa8d2ae890d3e 100644 (file)
@@ -6,19 +6,19 @@
 
 signature STRINGIFY =
 sig
-  type asm = x86.insn list
+  type asm = Blarg.insn list
   val stringify : (string -> string) -> asm -> string
 end
 
 structure Stringify :> STRINGIFY =
 struct
-  type asm = x86.insn list
-  structure X = x86
+  type asm = Blarg.insn list
+  structure X = Blarg
 
   (* val stringify : asm -> string
    * turns a x86 instruction list into a string of assembly code for these instructions *)
 
-  fun stringify' rn (X.CALL (l, n)) = X.print (X.CALL ((Symbol.symbol (rn (Symbol.name l))), n))
+  fun stringify' rn (X.INSN (pred, X.MOVSYM (r, n))) = X.print (X.INSN (pred, X.MOVSYM (r, (Symbol.symbol (rn (Symbol.name n))))))
     | stringify' rn x = X.print x
 
   (* val stringify : asm -> string *)
This page took 0.024202 seconds and 4 git commands to generate.