summaryrefslogtreecommitdiff
path: root/vaporize/library/CFGNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'vaporize/library/CFGNode.java')
-rw-r--r--vaporize/library/CFGNode.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/vaporize/library/CFGNode.java b/vaporize/library/CFGNode.java
index ca60856..a01bfb0 100644
--- a/vaporize/library/CFGNode.java
+++ b/vaporize/library/CFGNode.java
@@ -25,6 +25,11 @@ class CFGNode {
return this.line;
}
+ public boolean equals(Node other) {
+ return other.sourcePos ==
+ this.instruction.sourcePos;
+ }
+
protected void addSource(CFGNode node) {
this.sources.add(node);
}