From 58b9333e2d889abd26ef16eda496c0a47209ab58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Jul 2009 06:23:12 +0000 Subject: Fix compilation with EXPLICIT_STACK_FRAMES. git-svn-id: http://svn.drobilla.net/resp/tuplr@170 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/llvm.cpp | 4 ++-- 1 file 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 -- cgit v1.2.1