Remove SARRAYVALUE

This commit is contained in:
kai
2013-03-05 18:49:30 +01:00
parent 0fd586a818
commit ecd9f14b0d
4 changed files with 0 additions and 9 deletions

View File

@@ -140,9 +140,7 @@ bool Win64TargetABI::returnInArg(TypeFunction* tf)
// or ST(1) & ST(0) (creal)
// all other structs and static arrays are returned by struct-return (sret)
return (rt->ty == Tstruct
#if SARRAYVALUE
|| rt->ty == Tsarray
#endif
) && !canRewriteAsInt(rt);
}

View File

@@ -444,9 +444,7 @@ bool X86_64TargetABI::returnInArg(TypeFunction* tf) {
// All non-structs can be returned in registers.
return rt->ty == Tstruct
#if SARRAYVALUE
|| rt->ty == Tsarray
#endif
;
} else {
if (rt == Type::tvoid || keepUnchanged(rt))

View File

@@ -78,9 +78,7 @@ struct X86TargetABI : TargetABI
if (tf->linkage == LINKd)
{
return rt->ty == Tstruct
#if SARRAYVALUE
|| rt->ty == Tsarray
#endif
;
}
// other ABI's follow C, which is cdouble and creal returned on the stack

View File

@@ -192,9 +192,6 @@ llvm::FunctionType* DtoFunctionType(Type* type, Type* thistype, Type* nesttype,
// reference semantics? ref, out and d1 static arrays are
bool byref = arg->storageClass & (STCref|STCout);
#if !SARRAYVALUE
byref = byref || (arg->type->toBasetype()->ty == Tsarray);
#endif
Type* argtype = arg->type;
#if LDC_LLVM_VER >= 302