aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-07-03 06:23:12 +0000
committerDavid Robillard <d@drobilla.net>2009-07-03 06:23:12 +0000
commit58b9333e2d889abd26ef16eda496c0a47209ab58 (patch)
tree5f3ae521b8482e76c52ad66bcac2b0ae96917015
parentbcc1bc3a8c648daa059daf832ac04ad907c58129 (diff)
downloadresp-58b9333e2d889abd26ef16eda496c0a47209ab58.tar.gz
resp-58b9333e2d889abd26ef16eda496c0a47209ab58.tar.bz2
resp-58b9333e2d889abd26ef16eda496c0a47209ab58.zip
Fix compilation with EXPLICIT_STACK_FRAMES.
git-svn-id: http://svn.drobilla.net/resp/tuplr@170 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r--src/llvm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp
index e75460c..39cf2d0 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -182,7 +182,7 @@ struct LLVMEngine : public Engine {
Module* module;
ExecutionEngine* engine;
IRBuilder<> builder;
- CFunction alloc;
+ Function* alloc;
ExistingModuleProvider emp;
FunctionPassManager opt;
};
@@ -354,7 +354,7 @@ AFn::liftCall(CEnv& cenv, const AType& argsT)
StructType* frameT = StructType::get(types, false);
Value* tag = ConstantInt::get(Type::Int8Ty, GC::TAG_FRAME);
Value* frameSize = ConstantInt::get(Type::Int32Ty, s / 8);
- Value* frame = builder.CreateCall2(llVal(cenv.alloc), frameSize, tag, "frame");
+ Value* frame = builder.CreateCall2(llEngine(cenv)->alloc, frameSize, tag, "frame");
Value* framePtr = builder.CreateBitCast(frame, PointerType::get(frameT, 0));
// Bind parameter values in stack frame