From c08c4b8b6f0e8c4ccc139e525218cb0cb1ac4ad4 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 14 Jun 2017 20:38:59 +0100 Subject: Move subroutine helpers from CompilerContext to Assembly --- liblll/CodeFragment.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'liblll/CodeFragment.cpp') 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(code[0].assembly(ns))); - m_asm.append(m_asm.newPushSubSize(subPush.data())); + auto subPush = m_asm.appendSubroutine(make_shared(code[0].assembly(ns))); m_asm.append(Instruction::DUP1); if (code.size() == 3) { -- cgit