diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-15 03:38:59 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-15 04:21:26 +0800 |
commit | c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4 (patch) | |
tree | 0a30cbc22c44772cdad87e772c603525aec9f53a /liblll | |
parent | 6a260a9ff1c0c9c8ee14e988bd066b74555651e7 (diff) | |
download | dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.tar dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.tar.gz dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.tar.bz2 dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.tar.lz dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.tar.xz dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.tar.zst dexon-solidity-c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4.zip |
Move subroutine helpers from CompilerContext to Assembly
Diffstat (limited to 'liblll')
-rw-r--r-- | liblll/CodeFragment.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp index 47ddc4a6..9f37bc65 100644 --- a/liblll/CodeFragment.cpp +++ b/liblll/CodeFragment.cpp @@ -515,8 +515,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s) requireMaxSize(3); requireDeposit(1, 1); - auto subPush = m_asm.newSub(make_shared<Assembly>(code[0].assembly(ns))); - m_asm.append(m_asm.newPushSubSize(subPush.data())); + auto subPush = m_asm.appendSubroutine(make_shared<Assembly>(code[0].assembly(ns))); m_asm.append(Instruction::DUP1); if (code.size() == 3) { |