Eliminate the need for TypeFunction::funcdecl

This commit is contained in:
Alexey Prokhin
2013-10-01 14:00:28 +04:00
parent ca82589e25
commit b819975c84
22 changed files with 187 additions and 160 deletions

View File

@@ -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) {