mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
Use llvm::CallSite instead of custom CallOrInvoke class.
This commit is contained in:
parent
b7febcf35a
commit
dd41366a99
9 changed files with 46 additions and 76 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue