mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-11 01:44:10 +02:00
Added inreg attribute where appropriate on x86 to follow ABI docs.
Removed now unnecessary temporary variable in StringExp.
This commit is contained in:
@@ -2672,6 +2672,7 @@ TypeFunction::TypeFunction(Arguments *parameters, Type *treturn, int varargs, en
|
||||
this->usesThis = false;
|
||||
this->usesNest = false;
|
||||
this->retAttrs = 0;
|
||||
this->thisAttrs = 0;
|
||||
}
|
||||
|
||||
Type *TypeFunction::syntaxCopy()
|
||||
@@ -2683,6 +2684,7 @@ Type *TypeFunction::syntaxCopy()
|
||||
t->usesThis = usesThis;
|
||||
t->usesNest = usesNest;
|
||||
t->retAttrs = retAttrs;
|
||||
t->thisAttrs = thisAttrs;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
@@ -439,6 +439,7 @@ struct TypeFunction : Type
|
||||
bool usesThis;
|
||||
bool usesNest;
|
||||
unsigned retAttrs;
|
||||
unsigned thisAttrs; // also used for nest
|
||||
};
|
||||
|
||||
struct TypeDelegate : Type
|
||||
|
||||
Reference in New Issue
Block a user