FFI: Drop IR_CNEWI. Add IR_CNEWP only for pointers/refs.

This commit is contained in:
Mike Pall
2010-12-17 17:20:04 +01:00
parent c98132e182
commit 255c6e8c87
5 changed files with 50 additions and 91 deletions

View File

@@ -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))