From b7d856ed5fee1f0f918e30218e3a95fd8fc20dd3 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 8 Dec 2014 18:52:30 +0100 Subject: Changes in compiler to support variably sized stack elements. --- CompilerContext.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CompilerContext.h') diff --git a/CompilerContext.h b/CompilerContext.h index 7272a368..652e65a6 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -25,6 +25,7 @@ #include #include #include +#include #include namespace dev { @@ -45,7 +46,7 @@ public: void startNewFunction() { m_localVariables.clear(); m_asm.setDeposit(0); } void addVariable(VariableDeclaration const& _declaration); void addAndInitializeVariable(VariableDeclaration const& _declaration); - void addFunction(FunctionDefinition const& _function) { m_functionEntryLabels.insert(std::make_pair(&_function, m_asm.newTag())); } + void addFunction(FunctionDefinition const& _function); void adjustStackOffset(int _adjustment) { m_asm.adjustDeposit(_adjustment); } -- cgit