Mercurial > projects > ldc
diff gen/toobj.cpp @ 315:a9697749e898 trunk
[svn r336] Made sure calls within a landing pad area are invokes.
Nested trys still need some consideration.
author | ChristianK |
---|---|
date | Thu, 03 Jul 2008 22:05:45 +0200 |
parents | 665b81613475 |
children | 163cad969791 |
line wrap: on
line diff
--- a/gen/toobj.cpp Wed Jul 02 22:20:18 2008 +0200 +++ b/gen/toobj.cpp Thu Jul 03 22:05:45 2008 +0200 @@ -220,7 +220,7 @@ for (size_t i=0; i<n; i++) { llvm::Function* f = gIR->ctors[i]->ir.irFunc->func; - llvm::CallInst* call = builder.CreateCall(f,""); + CallOrInvoke* call = gIR->CreateCallOrInvoke(f); call->setCallingConv(llvm::CallingConv::Fast); } @@ -254,7 +254,7 @@ for (size_t i=0; i<n; i++) { llvm::Function* f = gIR->dtors[i]->ir.irFunc->func; - llvm::CallInst* call = builder.CreateCall(f,""); + CallOrInvoke* call = gIR->CreateCallOrInvoke(f); call->setCallingConv(llvm::CallingConv::Fast); } @@ -288,7 +288,7 @@ for (size_t i=0; i<n; i++) { llvm::Function* f = gIR->unitTests[i]->ir.irFunc->func; - llvm::CallInst* call = builder.CreateCall(f,""); + CallOrInvoke* call = gIR->CreateCallOrInvoke(f); call->setCallingConv(llvm::CallingConv::Fast); }