From dc1c38fbe23c95cf9d29757c2a2eb16083e5a61d Mon Sep 17 00:00:00 2001 From: cfreksen Date: Sun, 29 Oct 2017 21:21:43 +0100 Subject: [PATCH] Add Store case to insn2s. --- ll.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ll.py b/ll.py index f6928d6..6234811 100644 --- a/ll.py +++ b/ll.py @@ -110,6 +110,12 @@ def insn2s(insn): if isinstance(insn, Alloca): return ('alloca {}' .format(ty2s(insn.ty))) + if isinstance(insn, Store): + return ('store {} {}, {}* {}' + .format(ty2s(insn.ty), + oper2s(insn.value), + ty2s(insn.ty), + oper2s(insn.location))) elif isinstance(insn, Icmp): return ('icmp {} {} {}, {}' .format(insn.cnd, ty2s(insn.ty),