mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 04:13:14 +01:00
Remove SARRAYVALUE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user