diff dmd/mtype.h @ 930:7985bb036db4

Follow the D ABI and pass the last arg in a register if it is a struct that fits.
author Christian Kamm <kamm incasoftware de>
date Tue, 03 Feb 2009 21:46:46 +0100
parents 330f999ade44
children a904cc9bc064
line wrap: on
line diff
--- a/dmd/mtype.h	Tue Feb 03 18:11:39 2009 +0100
+++ b/dmd/mtype.h	Tue Feb 03 21:46:46 2009 +0100
@@ -438,11 +438,13 @@
     bool retInPtr;
     bool usesThis;
     bool usesNest;
+    bool structInregArg;
     unsigned retAttrs;
     unsigned thisAttrs; // also used for nest
+    // parameter index in the llvm function that contains the first not-implicit arg
+    size_t firstRealArg;
 
     bool reverseParams;
-    size_t reverseIndex;
 };
 
 struct TypeDelegate : Type