projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f201dbc
)
Preserve CC's when linking modules
author
Chris Lattner
<sabre@nondot.org>
Mon, 9 May 2005 01:09:39 +0000
(
01:09
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 9 May 2005 01:09:39 +0000
(
01:09
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21799
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index 6daf06104896ce8fa5e4d1cd94388f793948ab3d..23ba6ebf58ff6c2be7c9845f6646a29f17f7e3fc 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-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.