aboutsummaryrefslogtreecommitdiffstats
path: root/src/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r--src/llvm.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index 29c09ee..4019f9c 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -196,7 +196,7 @@ struct LLVMEngine : public Engine {
CVal compileDot(CEnv& cenv, CVal tup, int32_t index);
CVal compileLiteral(CEnv& cenv, const AST* lit);
CVal compileString(CEnv& cenv, const char* str);
- CVal compilePrimitive(CEnv& cenv, const APrimitive* prim);
+ CVal compilePrimitive(CEnv& cenv, const ACall* prim);
CVal compileIf(CEnv& cenv, const ACall* aif);
CVal compileMatch(CEnv& cenv, const ACall* match);
CVal compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val);
@@ -360,8 +360,8 @@ LLVMEngine::compileIf(CEnv& cenv, const ACall* aif)
BasicBlock* nextBB = NULL;
Branches branches;
size_t idx = 1;
- for (AIf::const_iterator i = aif->iter_at(1); ; ++i, idx += 2) {
- AIf::const_iterator next = i;
+ for (ATuple::const_iterator i = aif->iter_at(1); ; ++i, idx += 2) {
+ ATuple::const_iterator next = i;
if (++next == aif->end())
break;
@@ -416,7 +416,7 @@ LLVMEngine::compileMatch(CEnv& cenv, const ACall* match)
Branches branches;
size_t idx = 1;
- for (AMatch::const_iterator i = match->iter_at(2); i != match->end(); ++idx) {
+ for (ATuple::const_iterator i = match->iter_at(2); i != match->end(); ++idx) {
const AST* pat = *i++;
const AST* body = *i++;
const ASymbol* sym = pat->to<const ATuple*>()->head()->as<const ASymbol*>();
@@ -457,9 +457,9 @@ LLVMEngine::compileMatch(CEnv& cenv, const ACall* match)
}
CVal
-LLVMEngine::compilePrimitive(CEnv& cenv, const APrimitive* prim)
+LLVMEngine::compilePrimitive(CEnv& cenv, const ACall* prim)
{
- APrimitive::const_iterator i = prim->begin();
+ ATuple::const_iterator i = prim->begin();
LLVMEngine* engine = reinterpret_cast<LLVMEngine*>(cenv.engine());
bool isFloat = cenv.type(*++i)->str() == "Float";