From 255c6e8c874f4ecc8ff26e67387e1381acb12da8 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 17 Dec 2010 17:20:04 +0100 Subject: FFI: Drop IR_CNEWI. Add IR_CNEWP only for pointers/refs. --- lib/dump.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/dump.lua b/lib/dump.lua index 4e794498..3a94b935 100644 --- a/lib/dump.lua +++ b/lib/dump.lua @@ -418,16 +418,12 @@ local function dump_ir(tr, dumpsnap, dumpreg) band(ot, 64) == 0 and " " or "+", irtype[t], op)) local m1 = band(m, 3) - local op4 = sub(op, 1, 4) - if op4 == "CALL" then + if sub(op, 1, 4) == "CALL" then out:write(format("%-10s (", vmdef.ircall[op2])) if op1 ~= -1 then dumpcallargs(tr, op1) end out:write(")") - elseif op4 == "CNEW" then - out:write(formatk(tr, op2)) - if op1 ~= -1 then - out:write(" ("); dumpcallargs(tr, op1); out:write(")") - end + elseif op == "CNEW " and op2 == -1 then + out:write(formatk(tr, op1)) elseif m1 ~= 3 then -- op1 != IRMnone if op1 < 0 then out:write(formatk(tr, op1)) -- cgit v1.2.3-55-g6feb