[PATCH] add unparse branch for halt and blit
Export this patch
---
qbe/unparse.ha | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/qbe/unparse.ha b/qbe/unparse.ha
index e158433..23589b4 100644
--- a/qbe/unparse.ha
+++ b/qbe/unparse.ha
@@ -209,6 +209,16 @@ case let c: call =>
unparse_call(out, c)?;
case let d: dbgloc =>
fmt::fprintfln(out, "\tdbgloc {}, {}", d.0, d.1)?;
+case let b: blit =>
+ fmt::fprint(out, "\tblit ")?;
+ unparse_val(out, b.src)?;
+ fmt::fprint(out, ", ")?;
+ unparse_val(out, b.dst)?;
+ fmt::fprint(out, ", ")?;
+ unparse_val(out, b.sz)?;
+ fmt::fprint(out, "\n")?;
+case let b: hlt =>
+ fmt::fprintln(out, "\thlt")?;
};
fn unparse_jump(out: io::handle, j: jump) (io::error | void) = match (j) {
--
2.44.0