aboutsummaryrefslogtreecommitdiffstats
path: root/src/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r--src/llvm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index 32aedf7..73935bb 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -208,7 +208,7 @@ struct LLVMEngine : public Engine {
CVal compileIf(CEnv& cenv, const ATuple* aif);
CVal compileMatch(CEnv& cenv, const ATuple* match);
CVal compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val);
- CVal getGlobal(CEnv& cenv, const string& sym, CVal val);
+ CVal compileGlobalGet(CEnv& cenv, const string& sym, CVal val);
typedef pair<Value*, BasicBlock*> IfBranch;
typedef vector<IfBranch> IfBranches;
@@ -548,7 +548,7 @@ LLVMEngine::compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal
}
CVal
-LLVMEngine::getGlobal(CEnv& cenv, const string& sym, CVal val)
+LLVMEngine::compileGlobalGet(CEnv& cenv, const string& sym, CVal val)
{
LLVMEngine* engine = reinterpret_cast<LLVMEngine*>(cenv.engine());
return engine->builder.CreateLoad(llVal(val), sym + "Ptr");