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:
1a4a83c
)
Make llvm-extract preserve the callingconv of prototypes in the extracted
author
Chris Lattner
<sabre@nondot.org>
Thu, 25 Jan 2007 17:38:26 +0000
(17:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 25 Jan 2007 17:38:26 +0000
(17:38 +0000)
code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33500
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/ExtractFunction.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/ExtractFunction.cpp
b/lib/Transforms/IPO/ExtractFunction.cpp
index 69d0926fb6212334c84443c82bb0913fad951843..a871c4d7f2b4ffa45b042b070ca3893811302708 100644
(file)
--- a/
lib/Transforms/IPO/ExtractFunction.cpp
+++ b/
lib/Transforms/IPO/ExtractFunction.cpp
@@
-70,6
+70,7
@@
namespace {
Function *New = new Function(I->getFunctionType(),
GlobalValue::ExternalLinkage,
I->getName());
+ New->setCallingConv(I->getCallingConv());
I->setName(""); // Remove Old name
// If it's not the named function, delete the body of the function