diff options
author | David Robillard <d@drobilla.net> | 2009-10-13 23:46:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-13 23:46:15 +0000 |
commit | 1c851be2be3b2358e03fa7b2d6944d8bd1b0416d (patch) | |
tree | 536dd5ccfcb14511a77291996b9b939dd8510cfe /src | |
parent | 2dfcc9d781b2df3637fd96f1c5007703377b8109 (diff) | |
download | resp-1c851be2be3b2358e03fa7b2d6944d8bd1b0416d.tar.gz resp-1c851be2be3b2358e03fa7b2d6944d8bd1b0416d.tar.bz2 resp-1c851be2be3b2358e03fa7b2d6944d8bd1b0416d.zip |
Remove unnecessary CEnv.precompile.
git-svn-id: http://svn.drobilla.net/resp/tuplr@213 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src')
-rw-r--r-- | src/c.cpp | 2 | ||||
-rw-r--r-- | src/llvm.cpp | 2 | ||||
-rw-r--r-- | src/tuplr.hpp | 1 |
3 files changed, 0 insertions, 5 deletions
@@ -217,8 +217,6 @@ CEngine::compileFunction(CEnv& cenv, AFn* fn, const AType& argsT) // Write function body try { - // Define value first for recursion - cenv.precompile(fn, f); fn->impls.push_back(make_pair(thisType, f)); CVal retVal = NULL; for (size_t i = 2; i < fn->size(); ++i) diff --git a/src/llvm.cpp b/src/llvm.cpp index d6d29ce..810a7d3 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -314,8 +314,6 @@ LLVMEngine::compileFunction(CEnv& cenv, AFn* fn, const AType& argsT) // Write function body try { - // Define value first for recursion - cenv.precompile(fn, f); fn->impls.push_back(make_pair(thisType, f)); CVal retVal = NULL; for (size_t i = 2; i < fn->size(); ++i) diff --git a/src/tuplr.hpp b/src/tuplr.hpp index b7f4adf..6f79e8c 100644 --- a/src/tuplr.hpp +++ b/src/tuplr.hpp @@ -633,7 +633,6 @@ struct CEnv { Engine* engine() { return _engine; } void push() { tenv.push(); vals.push(); } void pop() { tenv.pop(); vals.pop(); } - void precompile(AST* obj, CVal value) { vals.def(obj, value); } CVal compile(AST* obj) { CVal* v = vals.ref(obj); return (v && *v) ? *v : vals.def(obj, obj->compile(*this)); |