summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/node.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-15 18:39:01 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-15 18:39:01 +0100
commita3b4cd4fdd4340c952eaa00bca9bebf817b901ae (patch)
tree055d3ae4b9d1e37682c2e49b31a6531f189eebf5 /flowgraph/node.cpp
parentd07c5bc14edbe071ee7b4f47f174780e95e451aa (diff)
Fixed unit tests, prepared hierarchical evaluation via stack (WIP)
Diffstat (limited to 'flowgraph/node.cpp')
-rw-r--r--flowgraph/node.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/flowgraph/node.cpp b/flowgraph/node.cpp
index 9b68d74..e0912dc 100644
--- a/flowgraph/node.cpp
+++ b/flowgraph/node.cpp
@@ -6,6 +6,14 @@
using namespace FlowGraph;
+FlowGraph::Data& Node::destination()
+{
+ if (mOperands.size() < 1)
+ throw std::runtime_error("ICE: No destination operand available");
+
+ return mOperands[0];
+}
+
// 4 byte for now
Data FlowGraph::MakeConstantInt(int i)
{