diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-17 15:38:56 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-17 15:38:56 -0600 |
commit | 3b1571fd410096eb20a9af9ebcee124ff1ea8eac (patch) | |
tree | 13e1f50d0f68d63ecb1fff14cf9d0091a691e3f5 /vaporize/library/Node.java | |
parent | 6d68e534aa53f3879ebc8a4f5803e468dc86a6bc (diff) |
Allow CFG to compile by removing generic types
Diffstat (limited to 'vaporize/library/Node.java')
-rw-r--r-- | vaporize/library/Node.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/vaporize/library/Node.java b/vaporize/library/Node.java deleted file mode 100644 index 203f931..0000000 --- a/vaporize/library/Node.java +++ /dev/null @@ -1,38 +0,0 @@ -package vaporize.library; - -import cs132.vapor.ast.*; -import java.util.ArrayList; - -class Node { - - private VInstr instruction; - private ArrayList<Node> sources; - private ArrayList<Node> dests; - - protected Node(VInstr instruction) { - this.instruction = instruction; - this.sources = new ArrayList<>(); - this.dests = new ArrayList<>(); - } - - protected void addSource(Node node) { - this.sources.add(node); - } - - protected void addDest(Node node) { - this.dests.add(node); - } - - protected VInstr getInstruction() { - return this.instruction; - } - - protected ArrayList<Node> getSources() { - return this.sources; - } - - protected ArrayList<Node> getDests() { - return this.dests; - } - -} |