aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'Compiler.h')
-rw-r--r--Compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Compiler.h b/Compiler.h
index 4e4d90d4..d931f535 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -33,11 +33,11 @@ public:
Compiler(): m_returnTag(m_context.newTag()) {}
void compileContract(ContractDefinition& _contract);
- bytes getAssembledBytecode() { return m_context.getAssembledBytecode(); }
+ bytes getAssembledBytecode(bool _optimize = false) { return m_context.getAssembledBytecode(_optimize); }
void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); }
/// Compile the given contract and return the EVM bytecode.
- static bytes compile(ContractDefinition& _contract);
+ static bytes compile(ContractDefinition& _contract, bool _optimize);
private:
/// Creates a new compiler context / assembly and packs the current code into the data part.