aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c.cpp4
-rw-r--r--src/compile.cpp2
-rw-r--r--src/llvm.cpp4
-rw-r--r--src/resp.hpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/c.cpp b/src/c.cpp
index 19cc1d5..51455e3 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -153,7 +153,7 @@ struct CEngine : public Engine {
return varname;
}
- CVal compileTup(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields);
+ CVal compileCons(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields);
CVal compileDot(CEnv& cenv, CVal tup, int32_t index);
CVal compileLiteral(CEnv& cenv, const AST* lit);
CVal compileString(CEnv& cenv, const char* str);
@@ -186,7 +186,7 @@ resp_new_c_engine()
***************************************************************************/
CVal
-CEngine::compileTup(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields)
+CEngine::compileCons(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields)
{
return NULL;
}
diff --git a/src/compile.cpp b/src/compile.cpp
index 35fb042..282a7f0 100644
--- a/src/compile.cpp
+++ b/src/compile.cpp
@@ -122,7 +122,7 @@ compile_cons(CEnv& cenv, const ATuple* cons) throw()
tlist.push_back(cenv.type(*i));
fields.push_back(resp_compile(cenv, *i));
}
- return cenv.engine()->compileTup(cenv, type, resp_compile(cenv, type), fields);
+ return cenv.engine()->compileCons(cenv, type, resp_compile(cenv, type), fields);
}
static CVal
diff --git a/src/llvm.cpp b/src/llvm.cpp
index bc90977..0dfbc69 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -197,7 +197,7 @@ struct LLVMEngine : public Engine {
return builder.CreateCall(llFunc(f), llArgs.begin(), llArgs.end());
}
- CVal compileTup(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields);
+ CVal compileCons(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields);
CVal compileDot(CEnv& cenv, CVal tup, int32_t index);
CVal compileLiteral(CEnv& cenv, const AST* lit);
CVal compileString(CEnv& cenv, const char* str);
@@ -295,7 +295,7 @@ bitsToBytes(size_t bits)
}
CVal
-LLVMEngine::compileTup(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields)
+LLVMEngine::compileCons(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields)
{
// Find size of memory required
size_t s = engine->getTargetData()->getTypeSizeInBits(PointerType::get(Type::getInt8Ty(context), NULL));
diff --git a/src/resp.hpp b/src/resp.hpp
index ae7bc11..3cccd30 100644
--- a/src/resp.hpp
+++ b/src/resp.hpp
@@ -706,7 +706,7 @@ struct Engine {
virtual void finishFunction(CEnv& cenv, CFunc f, CVal ret) = 0;
virtual void eraseFunction(CEnv& cenv, CFunc f) = 0;
- virtual CVal compileTup(CEnv& cenv, const AType* t, CVal rtti, ValVec& f) = 0;
+ virtual CVal compileCons(CEnv& cenv, const AType* t, CVal rtti, ValVec& f) = 0;
virtual CVal compileDot(CEnv& cenv, CVal tup, int32_t index) = 0;
virtual CVal compileLiteral(CEnv& cenv, const AST* lit) = 0;
virtual CVal compileString(CEnv& cenv, const char* str) = 0;