mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-11 17:33:13 +01:00
Move calling convention conversion into TargetABI.
The code is tightly coupled to TargetABI (the transformations there only make sense knowing that the right CC is selected).
This commit is contained in:
@@ -779,7 +779,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
|
||||
&& !fdecl->isMain()
|
||||
#endif
|
||||
)
|
||||
func->setCallingConv(DtoCallingConv(fdecl->loc, f->linkage));
|
||||
func->setCallingConv(gABI->callingConv(f->linkage));
|
||||
else // fall back to C, it should be the right thing to do
|
||||
func->setCallingConv(llvm::CallingConv::C);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user