mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-16 20:03:14 +01:00
Eliminate the need for TypeFunction::funcdecl
This commit is contained in:
@@ -74,7 +74,7 @@ struct UnknownTargetABI : TargetABI
|
||||
return t->toBasetype()->ty == Tstruct;
|
||||
}
|
||||
|
||||
void rewriteFunctionType(TypeFunction* t)
|
||||
void rewriteFunctionType(TypeFunction* t, IrFuncTy &fty)
|
||||
{
|
||||
// why?
|
||||
}
|
||||
@@ -135,12 +135,10 @@ struct IntrinsicABI : TargetABI
|
||||
}
|
||||
}
|
||||
|
||||
void rewriteFunctionType(TypeFunction* tf)
|
||||
void rewriteFunctionType(TypeFunction* tf, IrFuncTy &fty)
|
||||
{
|
||||
assert(tf->linkage == LINKintrinsic);
|
||||
|
||||
IrFuncTy& fty = tf->fty;
|
||||
|
||||
if (!fty.arg_sret) {
|
||||
Type* rt = fty.ret->type->toBasetype();
|
||||
if (rt->ty == Tstruct) {
|
||||
|
||||
Reference in New Issue
Block a user