mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
Preserve CC's when linking modules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f201dbc1a4
commit
cb9048a6e8
@ -600,6 +600,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
|||||||
// identical to SF into the dest module...
|
// identical to SF into the dest module...
|
||||||
Function *NewDF = new Function(SF->getFunctionType(), SF->getLinkage(),
|
Function *NewDF = new Function(SF->getFunctionType(), SF->getLinkage(),
|
||||||
SF->getName(), Dest);
|
SF->getName(), Dest);
|
||||||
|
NewDF->setCallingConv(SF->getCallingConv());
|
||||||
|
|
||||||
// If the LLVM runtime renamed the function, but it is an externally
|
// If the LLVM runtime renamed the function, but it is an externally
|
||||||
// visible symbol, DF must be an existing function with internal linkage.
|
// visible symbol, DF must be an existing function with internal linkage.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user