aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ContractCompiler.h
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-08 22:25:32 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:18 +0800
commitc9f9b2ab4d421e99055425ace5deeb76d8f4fdd2 (patch)
tree3ac98a19b929334a70d6ed47551b36d41a0f6a62 /libsolidity/codegen/ContractCompiler.h
parent5011d6339a185a55d6cdc3e952dea7bdd14a2ff7 (diff)
downloaddexon-solidity-c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2.tar.gz
dexon-solidity-c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2.tar.zst
dexon-solidity-c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2.zip
codegen: add a compilation mode and a runtime context to CompilerContext
Diffstat (limited to 'libsolidity/codegen/ContractCompiler.h')
-rw-r--r--libsolidity/codegen/ContractCompiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ContractCompiler.h b/libsolidity/codegen/ContractCompiler.h
index 0799a543..fecf6f5a 100644
--- a/libsolidity/codegen/ContractCompiler.h
+++ b/libsolidity/codegen/ContractCompiler.h
@@ -38,11 +38,11 @@ namespace solidity {
class ContractCompiler: private ASTConstVisitor
{
public:
- explicit ContractCompiler(CompilerContext& _context, bool _optimise):
+ explicit ContractCompiler(CompilationMode _mode, CompilerContext* _runtimeContext, CompilerContext& _context, bool _optimise):
m_optimise(_optimise),
m_context(_context)
{
- m_context = CompilerContext();
+ m_context = CompilerContext(_mode, _runtimeContext);
}
void compileContract(