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 54999fc..3688845 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -215,7 +215,7 @@ AFn::lift(CEnv& cenv)
cenv.pop();
AType* type = cenv.type(this);
- if (funcs.find(type) || !type->concrete())
+ if (impls.find(type) || !type->concrete())
return;
AType* protT = type->at(1)->as<AType*>();
@@ -243,7 +243,7 @@ AFn::liftCall(CEnv& cenv, const AType& argsT)
}
Object::pool.addRoot(thisType);
- if (funcs.find(thisType))
+ if (impls.find(thisType))
return;
ATuple* protT = thisType->at(1)->as<ATuple*>();
@@ -321,7 +321,7 @@ AFn::liftCall(CEnv& cenv, const AType& argsT)
try {
// Define value first for recursion
cenv.precompile(this, f);
- funcs.push_back(make_pair(thisType, f));
+ impls.push_back(make_pair(thisType, f));
CValue retVal = NULL;
for (size_t i = 2; i < size(); ++i)
retVal = cenv.compile(at(i));
@@ -380,7 +380,7 @@ ACall::compile(CEnv& cenv)
TEnv::GenericTypes::const_iterator gt = cenv.tenv.genericTypes.find(c);
assert(gt != cenv.tenv.genericTypes.end());
AType fnT(loc, cenv.penv.sym("Fn"), &protT, cenv.type(this), 0);
- Function* f = (Function*)c->funcs.find(&fnT);
+ Function* f = (Function*)c->impls.find(&fnT);
THROW_IF(!f, loc, (format("callee failed to compile for type %1%") % fnT.str()).str());
vector<Value*> params(size() - 1);