diff options
author | chriseth <c@ethdev.com> | 2016-11-11 21:11:07 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:19 +0800 |
commit | 0335ed4cb476ece63224a96c8ab660116ff08c3a (patch) | |
tree | 6579706bb8da1e8b84e05dc95775bfca5076cc7c /libsolidity/codegen/CompilerContext.h | |
parent | 22b4d1b29a17c6a6360d6d6e42860bd621a7bfd3 (diff) | |
download | dexon-solidity-0335ed4cb476ece63224a96c8ab660116ff08c3a.tar.gz dexon-solidity-0335ed4cb476ece63224a96c8ab660116ff08c3a.tar.zst dexon-solidity-0335ed4cb476ece63224a96c8ab660116ff08c3a.zip |
Simple peephole optimizer that is activated even if not requested.
Diffstat (limited to 'libsolidity/codegen/CompilerContext.h')
-rw-r--r-- | libsolidity/codegen/CompilerContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h index ee3fb068..8ccbddfd 100644 --- a/libsolidity/codegen/CompilerContext.h +++ b/libsolidity/codegen/CompilerContext.h @@ -155,7 +155,7 @@ public: /// Prepends "PUSH <compiler version number> POP" void injectVersionStampIntoSub(size_t _subIndex); - void optimise(unsigned _runs = 200) { m_asm->optimise(true, true, _runs); } + void optimise(bool _fullOptimsation, unsigned _runs = 200) { m_asm->optimise(_fullOptimsation, true, _runs); } /// @returns the runtime context if in creation mode and runtime context is set, nullptr otherwise. CompilerContext* runtimeContext() { return m_runtimeContext; } |