aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-09 01:52:30 +0800
committerChristian <c@ethdev.com>2014-12-09 02:02:40 +0800
commitb7d856ed5fee1f0f918e30218e3a95fd8fc20dd3 (patch)
treea0a1d0cc8dc143b14893b8d7aefa66a838a812cd /CompilerContext.h
parent9b68033efc40b11b7778fbdb43325ba4ad196f1c (diff)
downloaddexon-solidity-b7d856ed5fee1f0f918e30218e3a95fd8fc20dd3.tar.gz
dexon-solidity-b7d856ed5fee1f0f918e30218e3a95fd8fc20dd3.tar.zst
dexon-solidity-b7d856ed5fee1f0f918e30218e3a95fd8fc20dd3.zip
Changes in compiler to support variably sized stack elements.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r--CompilerContext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/CompilerContext.h b/CompilerContext.h
index 7272a368..652e65a6 100644
--- a/CompilerContext.h
+++ b/CompilerContext.h
@@ -25,6 +25,7 @@
#include <ostream>
#include <libevmcore/Instruction.h>
#include <libevmcore/Assembly.h>
+#include <libsolidity/ASTForward.h>
#include <libsolidity/Types.h>
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); }