Mercurial > projects > ldc
diff gen/statements.cpp @ 1013:8c73ff5f69e0
Use llvm::CallSite instead of custom CallOrInvoke class.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 28 Feb 2009 22:16:52 +0100 |
parents | 18ad5601dff7 |
children | 9167d492cbc2 |
line wrap: on
line diff
--- a/gen/statements.cpp Sat Feb 28 19:58:30 2009 +0100 +++ b/gen/statements.cpp Sat Feb 28 22:16:52 2009 +0100 @@ -736,9 +736,9 @@ LLValue* llval = val->getRVal(); assert(llval->getType() == fn->getFunctionType()->getParamType(1)); - CallOrInvoke* call = gIR->CreateCallOrInvoke2(fn, table, llval, "tmp"); + LLCallSite call = gIR->CreateCallOrInvoke2(fn, table, llval, "tmp"); - return call->get(); + return call.getInstruction(); } void SwitchStatement::toIR(IRState* p) @@ -1438,7 +1438,7 @@ args.push_back(c); // call - CallOrInvoke* call = gIR->CreateCallOrInvoke(fn, args.begin(), args.end()); + gIR->CreateCallOrInvoke(fn, args.begin(), args.end()); gIR->ir->CreateUnreachable(); }