mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 20:03:14 +01:00
Eliminate the need for TypeFunction::funcdecl
This commit is contained in:
@@ -925,12 +925,12 @@ static void LLVM_D_BuildRuntimeModule()
|
||||
M
|
||||
);
|
||||
gABI->newFunctionType(dty);
|
||||
gABI->rewriteFunctionType(dty);
|
||||
gABI->rewriteFunctionType(dty, dty->irFty);
|
||||
gABI->doneWithFunctionType();
|
||||
#if LDC_LLVM_VER < 303
|
||||
fn->addAttribute(1, dty->fty.args[0]->attrs);
|
||||
fn->addAttribute(1, dty->irFty.args[0]->attrs);
|
||||
#else
|
||||
fn->addAttributes(1, llvm::AttributeSet::get(gIR->context(), 1, dty->fty.args[0]->attrs));
|
||||
fn->addAttributes(1, llvm::AttributeSet::get(gIR->context(), 1, dty->irFty.args[0]->attrs));
|
||||
#endif
|
||||
fn->setCallingConv(gABI->callingConv(LINKd));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user