summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/node.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-22 17:11:11 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-22 17:11:11 +0100
commitad3fd947005400c90f41baa4416a27d94b1bc157 (patch)
tree4332b7ad2183f0e5b4e10719129573540519413a /flowgraph/node.cpp
parentfd8517e10937a5b72ed839ce900306f281d74b7d (diff)
Clarify flowgraph types
Diffstat (limited to 'flowgraph/node.cpp')
-rw-r--r--flowgraph/node.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/flowgraph/node.cpp b/flowgraph/node.cpp
index d7ed939..cb7677a 100644
--- a/flowgraph/node.cpp
+++ b/flowgraph/node.cpp
@@ -22,16 +22,16 @@ Data FlowGraph::MakeConstantInt(int i)
return Data{DataType::Int, std::make_shared<Constant>(endian::to_little(uint32_t(i)))};
}
-Data FlowGraph::MakeLocalPointer(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name)
+Data FlowGraph::MakeLocalInt(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name)
{
- Data data{DataType::Pointer, std::make_shared<LocalStorage>(name)};
+ Data data{DataType::Int, std::make_shared<LocalStorage>(name)};
scope->push_back(std::make_shared<Data>(data));
return data;
}
-Data FlowGraph::MakeLocalSize(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name)
+Data FlowGraph::MakeLocalPointer(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name)
{
- Data data{DataType::Size, std::make_shared<LocalStorage>(name)};
+ Data data{DataType::Pointer, std::make_shared<LocalStorage>(name)};
scope->push_back(std::make_shared<Data>(data));
return data;
}