mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-28 22:41:29 +02:00
Add nest attribute to this parameters on x86-64. This is a free extra
parameter register :).
This commit is contained in:
@@ -677,6 +677,13 @@ void X86_64TargetABI::rewriteFunctionType(TypeFunction* tf) {
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user