From 28251a0c6f4e31c63c12746ffa77e05c669ef80d Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 10 Mar 2017 12:48:53 +0000 Subject: Changing printasm --- c_compiler/include/function.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'c_compiler/include/function.hpp') diff --git a/c_compiler/include/function.hpp b/c_compiler/include/function.hpp index d608531..77d1372 100644 --- a/c_compiler/include/function.hpp +++ b/c_compiler/include/function.hpp @@ -1,13 +1,10 @@ #ifndef AST_FUNCTION_HPP #define AST_FUNCTION_HPP -#include "ast.hpp" +#include "node.hpp" - -struct VarLocation { - Type* type; - int32_t stack_position; -}; +class Declaration; +class Statement; class Function : public Node { @@ -22,7 +19,7 @@ public: virtual void print() const; virtual void printxml() const; - virtual void printasm() const; + virtual VariableStackBindings printasm(VariableStackBindings bindings) const; }; -- cgit