summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/node.cpp
diff options
context:
space:
mode:
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;
}