aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp8
1 files changed, 4 insertions, 4 deletions
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<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;
}