Added inreg attribute where appropriate on x86 to follow ABI docs.

Removed now unnecessary temporary variable in StringExp.
This commit is contained in:
Tomas Lindquist Olsen
2008-10-23 00:34:46 +02:00
parent a52f0330d0
commit f71b7ac284
5 changed files with 51 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -439,6 +439,7 @@ struct TypeFunction : Type
bool usesThis;
bool usesNest;
unsigned retAttrs;
unsigned thisAttrs; // also used for nest
};
struct TypeDelegate : Type