mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-24 21:01:49 +01:00
Eliminate the need for TypeFunction::funcdecl
This commit is contained in:
@@ -97,7 +97,7 @@ struct Win64TargetABI : TargetABI
|
||||
|
||||
bool passByVal(Type* t);
|
||||
|
||||
void rewriteFunctionType(TypeFunction* tf);
|
||||
void rewriteFunctionType(TypeFunction* tf, IrFuncTy &fty);
|
||||
};
|
||||
|
||||
|
||||
@@ -153,9 +153,8 @@ bool Win64TargetABI::passByVal(Type* t)
|
||||
return (t->ty == Tstruct || t->ty == Tsarray) && !canRewriteAsInt(t);
|
||||
}
|
||||
|
||||
void Win64TargetABI::rewriteFunctionType(TypeFunction* tf)
|
||||
void Win64TargetABI::rewriteFunctionType(TypeFunction* tf, IrFuncTy &fty)
|
||||
{
|
||||
IrFuncTy& fty = tf->fty;
|
||||
Type* rt = fty.ret->type->toBasetype();
|
||||
|
||||
// RETURN VALUE
|
||||
|
||||
Reference in New Issue
Block a user