From 1f6e56b052c7fbb85d8ba4d5f77ad5dbf2735892 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Apr 1999 08:17:46 +0000 Subject: [PATCH] preds is array instead of hash appendInstruction() takes no parameter any more git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@553 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/RemovePopAnalyzer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jode/jode/obfuscator/RemovePopAnalyzer.java b/jode/jode/obfuscator/RemovePopAnalyzer.java index 5571602..5a01aa0 100644 --- a/jode/jode/obfuscator/RemovePopAnalyzer.java +++ b/jode/jode/obfuscator/RemovePopAnalyzer.java @@ -49,7 +49,7 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes { Instruction findMatchingPush(Instruction instr) { int count = 0; while (true) { - if (instr.preds.size() != 1) + if (instr.preds != null) return null; instr = instr.prevByAddr; switch (instr.opcode) { @@ -346,7 +346,7 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes { if (instr.opcode == opc_pop) instr.opcode = opc_pop2; else { - Instruction thirdPop = instr.appendInstruction(false); + Instruction thirdPop = instr.appendInstruction(); thirdPop.length = 1; thirdPop.opcode = opc_pop; } @@ -399,7 +399,7 @@ public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes { * split it and continue with second half */ instr.opcode = opc_pop; - instr = instr.appendInstruction(false); + instr = instr.appendInstruction(); instr.opcode = opc_pop; instr.length = 1; continue;