From 152c910f89e078099a5aba6d7d6f7fa28ceea2c3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Dec 2010 01:11:41 +0000 Subject: Consistent engine global[Set|Get] interface. git-svn-id: http://svn.drobilla.net/resp/resp@321 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/llvm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/llvm.cpp') diff --git a/src/llvm.cpp b/src/llvm.cpp index 81d2fe8..be57e25 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -59,8 +59,8 @@ struct LLVMEngine : public Engine { CVal compileCall(CEnv& cenv, CFunc f, const AType* funcT, const vector& args); CVal compileCons(CEnv& cenv, const AType* type, CVal rtti, const vector& fields); CVal compileDot(CEnv& cenv, CVal tup, int32_t index); - CVal compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val); - CVal compileGlobalGet(CEnv& cenv, const string& sym, CVal val); + CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AType* t); + CVal compileGlobalGet(CEnv& cenv, const string& s, CVal v); IfState compileIfStart(CEnv& cenv); void compileIfBranch(CEnv& cenv, IfState state, CVal condV, const AST* then); CVal compileIfEnd(CEnv& cenv, IfState state, CVal elseV, const AType* type); @@ -439,7 +439,7 @@ LLVMEngine::compilePrimitive(CEnv& cenv, const ATuple* prim) } CVal -LLVMEngine::compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val) +LLVMEngine::compileGlobalSet(CEnv& cenv, const string& sym, CVal val, const AType* type) { LLVMEngine* engine = reinterpret_cast(cenv.engine()); GlobalVariable* global = new GlobalVariable(*module, llType(type), false, -- cgit v1.2.1