aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'Compiler.h')
-rw-r--r--Compiler.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/Compiler.h b/Compiler.h
index 70e6c44f..b425b07c 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -32,7 +32,7 @@ class Compiler: private ASTVisitor
public:
Compiler(): m_returnTag(m_context.newTag()) {}
- void compileContract(ContractDefinition& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals);
+ void compileContract(ContractDefinition const& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals);
bytes getAssembledBytecode(bool _optimize = false) { return m_context.getAssembledBytecode(_optimize); }
void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); }
@@ -48,14 +48,14 @@ private:
void registerStateVariables(ContractDefinition const& _contract);
- virtual bool visit(FunctionDefinition& _function) override;
- virtual bool visit(IfStatement& _ifStatement) override;
- virtual bool visit(WhileStatement& _whileStatement) override;
- virtual bool visit(Continue& _continue) override;
- virtual bool visit(Break& _break) override;
- virtual bool visit(Return& _return) override;
- virtual bool visit(VariableDefinition& _variableDefinition) override;
- virtual bool visit(ExpressionStatement& _expressionStatement) override;
+ virtual bool visit(FunctionDefinition const& _function) override;
+ virtual bool visit(IfStatement const& _ifStatement) override;
+ virtual bool visit(WhileStatement const& _whileStatement) override;
+ virtual bool visit(Continue const& _continue) override;
+ virtual bool visit(Break const& _break) override;
+ virtual bool visit(Return const& _return) override;
+ virtual bool visit(VariableDefinition const& _variableDefinition) override;
+ virtual bool visit(ExpressionStatement const& _expressionStatement) override;
CompilerContext m_context;