mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 22:15:18 +00:00
Preserve CC's when linking modules
llvm-svn: 21799
This commit is contained in:
parent
2d9c054f4e
commit
a2edd7e449
@ -600,6 +600,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
||||
// identical to SF into the dest module...
|
||||
Function *NewDF = new Function(SF->getFunctionType(), SF->getLinkage(),
|
||||
SF->getName(), Dest);
|
||||
NewDF->setCallingConv(SF->getCallingConv());
|
||||
|
||||
// If the LLVM runtime renamed the function, but it is an externally
|
||||
// visible symbol, DF must be an existing function with internal linkage.
|
||||
|
Loading…
Reference in New Issue
Block a user