aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/src/function.cpp')
-rw-r--r--c_compiler/src/function.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/c_compiler/src/function.cpp b/c_compiler/src/function.cpp
index 090e070..6c41c7a 100644
--- a/c_compiler/src/function.cpp
+++ b/c_compiler/src/function.cpp
@@ -1,6 +1,7 @@
#include "function.hpp"
#include "statement.hpp"
#include "declaration.hpp"
+#include "bindings.hpp"
#include <iostream>
#include <vector>
@@ -69,4 +70,6 @@ VariableStackBindings Function::printasm(VariableStackBindings bindings) const
std::cout << "\tmove\t$sp,$fp\n\tlw\t$fp," << memory_needed-4 << "($sp)\n\taddiu\t$sp,$sp,"
<< memory_needed << "\n\tjr\t$31\n\tnop" << std::endl;
+
+ return bindings;
}