From 38b50b89bc638fe5d94bc6523c574504a5ef368d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 19 Jun 2009 03:33:41 +0000 Subject: Factor out memory/GC related things from AST to Object. git-svn-id: http://svn.drobilla.net/resp/tuplr@124 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- llvm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm.cpp') diff --git a/llvm.cpp b/llvm.cpp index 407e8f2..c5161a0 100644 --- a/llvm.cpp +++ b/llvm.cpp @@ -226,7 +226,7 @@ AClosure::liftCall(CEnv& cenv, const vector& argsT) throw Error(loc, "unable to resolve concrete type for function"); } - AST::pool.addRoot(thisType); + Object::pool.addRoot(thisType); if (funcs.find(thisType)) return; @@ -580,7 +580,7 @@ eval(CEnv& cenv, const string& name, istream& is) cenv.out << call(resultType, llengine(cenv)->engine->getPointerToFunction(f)) << " : " << resultType << endl; - AST::pool.collect(cenv, AST::pool.roots()); + Object::pool.collect(cenv, Object::pool.roots()); } catch (Error& e) { cenv.err << e.what() << endl; @@ -635,7 +635,7 @@ repl(CEnv& cenv) if (body->to()) cenv.lock(body); - AST::pool.collect(cenv, AST::pool.roots()); + Object::pool.collect(cenv, Object::pool.roots()); cenv.tsubst = oldSubst; @@ -663,7 +663,7 @@ newCenv(PEnv& penv, TEnv& tenv) void freeCenv(CEnv* cenv) { - AST::pool.collect(*cenv, GC::Roots()); + Object::pool.collect(*cenv, GC::Roots()); delete (LLVMEngine*)cenv->engine(); delete cenv; } -- cgit v1.2.1