diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-25 17:38:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-25 17:38:26 +0000 |
commit | 79f08506f1d45c577bc8423368fee6ed3cb04304 (patch) | |
tree | d7f03e79111895f54bf76afef468838c82287e47 /llvm/lib/Transforms/IPO/ExtractFunction.cpp | |
parent | ee132b5fce1dda9762c59cf5e5594a0cdedc9d83 (diff) | |
download | bcm5719-llvm-79f08506f1d45c577bc8423368fee6ed3cb04304.tar.gz bcm5719-llvm-79f08506f1d45c577bc8423368fee6ed3cb04304.zip |
Make llvm-extract preserve the callingconv of prototypes in the extracted
code.
llvm-svn: 33500
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ExtractFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp index 69d0926fb62..a871c4d7f2b 100644 --- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp +++ b/llvm/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 |