From 1163db5bd8eeb5e4ba54dc64e2911724ed74af28 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 12 Mar 1999 19:27:04 +0000 Subject: [PATCH] remove the block if stack analysis succeeded git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@400 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/SpecialBlock.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/jode/jode/flow/SpecialBlock.java b/jode/jode/flow/SpecialBlock.java index bdd4003..acb21ce 100644 --- a/jode/jode/flow/SpecialBlock.java +++ b/jode/jode/flow/SpecialBlock.java @@ -29,7 +29,6 @@ public class SpecialBlock extends StructuredBlock { public static int SWAP = 1; public static int POP = 2; private static String[] output = { "DUP", "SWAP", "POP" }; - private boolean resolved = false; /** * The type, one of DUP or SWAP @@ -66,20 +65,17 @@ public class SpecialBlock extends StructuredBlock { } public void removePush() { - resolved = true; - super.removePush(); + /* XXX */ + removeBlock(); } public void dumpInstruction(TabbedPrintWriter writer) throws java.io.IOException { - if (!resolved) - writer.println(output[type] - + ((count == 1) ? "" : "2") - + ((depth == 0) ? "" : "_X"+depth)); - else - writer.println("/* warning: unusual code */"); + writer.println(output[type] + + ((count == 1) ? "" : "2") + + ((depth == 0) ? "" : "_X"+depth)); } public boolean doTransformations() {