mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Started work on phobos
This commit is contained in:
@@ -151,6 +151,10 @@ struct X86TargetABI : TargetABI
|
||||
|
||||
bool returnInArg(TypeFunction* tf)
|
||||
{
|
||||
#if DMDV2
|
||||
if (tf->isref)
|
||||
return false;
|
||||
#endif
|
||||
Type* rt = tf->next->toBasetype();
|
||||
// D only returns structs on the stack
|
||||
if (tf->linkage == LINKd)
|
||||
@@ -287,6 +291,10 @@ struct UnknownTargetABI : TargetABI
|
||||
{
|
||||
bool returnInArg(TypeFunction* tf)
|
||||
{
|
||||
#if DMDV2
|
||||
if (tf->isref)
|
||||
return false;
|
||||
#endif
|
||||
return (tf->next->toBasetype()->ty == Tstruct);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user