Mercurial > projects > ldc
diff gen/abi-x86-64.cpp @ 1439:679ac907c82f
Add `nest` attribute to `this` parameters on x86-64. This is a free extra
parameter register :).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 31 May 2009 10:41:20 +0200 |
parents | cc2d8a7388c7 |
children | a5526b7a5ae6 |
line wrap: on
line diff
--- a/gen/abi-x86-64.cpp Sat May 30 23:48:22 2009 +0200 +++ b/gen/abi-x86-64.cpp Sun May 31 10:41:20 2009 +0200 @@ -677,6 +677,13 @@ } } + if (fty.arg_this) { + fty.arg_this->attrs |= llvm::Attribute::Nest; + } + if (fty.arg_nest) { + fty.arg_nest->attrs |= llvm::Attribute::Nest; + } + Logger::println("x86-64 D ABI: Transforming arguments"); LOG_SCOPE;