Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
922:0749c0757a43 | 930:7985bb036db4 |
---|---|
436 | 436 |
437 // LDC | 437 // LDC |
438 bool retInPtr; | 438 bool retInPtr; |
439 bool usesThis; | 439 bool usesThis; |
440 bool usesNest; | 440 bool usesNest; |
441 bool structInregArg; | |
441 unsigned retAttrs; | 442 unsigned retAttrs; |
442 unsigned thisAttrs; // also used for nest | 443 unsigned thisAttrs; // also used for nest |
444 // parameter index in the llvm function that contains the first not-implicit arg | |
445 size_t firstRealArg; | |
443 | 446 |
444 bool reverseParams; | 447 bool reverseParams; |
445 size_t reverseIndex; | |
446 }; | 448 }; |
447 | 449 |
448 struct TypeDelegate : Type | 450 struct TypeDelegate : Type |
449 { | 451 { |
450 TypeDelegate(Type *t); | 452 TypeDelegate(Type *t); |