diff options
author | chriseth <chris@ethereum.org> | 2018-02-22 06:56:42 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-03-02 00:19:35 +0800 |
commit | f75a41132553d073202d8bc2ea65cc287c7085b7 (patch) | |
tree | ed4718f854ec68629ec792665920a8603111292c /libsolidity/codegen/Compiler.h | |
parent | 85785710e6182a5abb68e5339f052b4a451d086e (diff) | |
download | dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.gz dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.bz2 dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.lz dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.xz dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.zst dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.zip |
Provide target EVM version in CompilerContext.
Diffstat (limited to 'libsolidity/codegen/Compiler.h')
-rw-r--r-- | libsolidity/codegen/Compiler.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h index 06654486..f6865d75 100644 --- a/libsolidity/codegen/Compiler.h +++ b/libsolidity/codegen/Compiler.h @@ -22,22 +22,25 @@ #pragma once -#include <ostream> -#include <functional> #include <libsolidity/codegen/CompilerContext.h> +#include <libsolidity/interface/EVMVersion.h> + #include <libevmasm/Assembly.h> +#include <ostream> +#include <functional> + namespace dev { namespace solidity { class Compiler { public: - explicit Compiler(bool _optimize = false, unsigned _runs = 200): + explicit Compiler(EVMVersion _evmVersion = EVMVersion{}, bool _optimize = false, unsigned _runs = 200): m_optimize(_optimize), m_optimizeRuns(_runs), - m_runtimeContext(), - m_context(&m_runtimeContext) + m_runtimeContext(_evmVersion), + m_context(_evmVersion, &m_runtimeContext) { } /// Compiles a contract. |