diff options
Diffstat (limited to 'llvm.cpp')
-rw-r--r-- | llvm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -226,7 +226,7 @@ AClosure::liftCall(CEnv& cenv, const vector<AType*>& 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<ADefinition*>()) 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; } |