aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-11 17:39:59 +0800
committerChristian <c@ethdev.com>2014-11-11 17:39:59 +0800
commitd1789250b66f79ab45bc8469eedba410f4ae388f (patch)
tree3205ad7f977d2b99b6a6c92175d2d58c5b822502 /Compiler.cpp
parent41b26e491b9a4eaa1ef481e7e57ebc1111315033 (diff)
parenta0c72065fee89c4558eeb4a98e5273633635bc39 (diff)
downloaddexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.tar
dexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.tar.gz
dexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.tar.bz2
dexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.tar.lz
dexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.tar.xz
dexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.tar.zst
dexon-solidity-d1789250b66f79ab45bc8469eedba410f4ae388f.zip
Merge remote-tracking branch 'ethereum/develop' into sol_jumptable
Conflicts: libsolidity/Compiler.cpp
Diffstat (limited to 'Compiler.cpp')
-rw-r--r--Compiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Compiler.cpp b/Compiler.cpp
index c5e25a12..da28ba8a 100644
--- a/Compiler.cpp
+++ b/Compiler.cpp
@@ -32,11 +32,11 @@ using namespace std;
namespace dev {
namespace solidity {
-bytes Compiler::compile(ContractDefinition& _contract)
+bytes Compiler::compile(ContractDefinition& _contract, bool _optimize)
{
Compiler compiler;
compiler.compileContract(_contract);
- return compiler.m_context.getAssembledBytecode();
+ return compiler.m_context.getAssembledBytecode(_optimize);
}
void Compiler::compileContract(ContractDefinition& _contract)