aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-06 23:30:50 +0800
committerChristian <c@ethdev.com>2014-11-07 05:55:42 +0800
commit225fc8e1b31860ab002c38fb9ff326f20b76965f (patch)
treebfe0ff0dafcabe113a768fb6377f7481be3e6226 /CompilerContext.h
parent04726a4ee4bf982389a310d45e5751b974d93655 (diff)
downloaddexon-solidity-225fc8e1b31860ab002c38fb9ff326f20b76965f.tar.gz
dexon-solidity-225fc8e1b31860ab002c38fb9ff326f20b76965f.tar.zst
dexon-solidity-225fc8e1b31860ab002c38fb9ff326f20b76965f.zip
Option to activate the optimizer for solidity.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r--CompilerContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/CompilerContext.h b/CompilerContext.h
index 088ef43b..866c621d 100644
--- a/CompilerContext.h
+++ b/CompilerContext.h
@@ -75,7 +75,7 @@ public:
eth::Assembly const& getAssembly() const { return m_asm; }
void streamAssembly(std::ostream& _stream) const { _stream << m_asm; }
- bytes getAssembledBytecode() const { return m_asm.assemble(); }
+ bytes getAssembledBytecode(bool _optimize = false) { return m_asm.optimise(_optimize).assemble(); }
private:
eth::Assembly m_asm;