From c4369af063711bd3de95ddee8aada37ddcecb0ad Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 12 Feb 1999 15:31:51 +0000 Subject: [PATCH] hasNoJumps git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@268 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/FlowBlock.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jode/jode/flow/FlowBlock.java b/jode/jode/flow/FlowBlock.java index bba6c63..2c1ca0a 100644 --- a/jode/jode/flow/FlowBlock.java +++ b/jode/jode/flow/FlowBlock.java @@ -147,6 +147,10 @@ public class FlowBlock { return addr+length; } + public boolean hasNoJumps() { + return successors.size() == 0 && predecessors.size() == 0; + } + /** * This method optimizes the jumps to successor. * @param jumps The list of jumps with that successor.