Use llvm::CallSite instead of custom CallOrInvoke class.

This commit is contained in:
Frits van Bommel 2009-02-28 22:16:52 +01:00
parent b7febcf35a
commit dd41366a99
9 changed files with 46 additions and 76 deletions

View file

@ -37,7 +37,7 @@ LLValue* DtoNew(Type* newtype)
LLConstant* ti = DtoTypeInfoOf(newtype);
assert(isaPointer(ti));
// call runtime allocator
LLValue* mem = gIR->CreateCallOrInvoke(fn, ti, ".gc_mem")->get();
LLValue* mem = gIR->CreateCallOrInvoke(fn, ti, ".gc_mem").getInstruction();
// cast
return DtoBitCast(mem, getPtrToType(DtoType(newtype)), ".gc_mem");
}
@ -136,7 +136,7 @@ void DtoAssert(Module* M, Loc* loc, DValue* msg)
args.push_back(c);
// call
CallOrInvoke* call = gIR->CreateCallOrInvoke(fn, args.begin(), args.end());
gIR->CreateCallOrInvoke(fn, args.begin(), args.end());
// end debug info
if (global.params.symdebug)