[llvm-commits] CVS: llvm/lib/Transforms/IPO/ExtractFunction.cpp

Chris Lattner sabre at nondot.org
Thu Jan 25 09:38:42 PST 2007



Changes in directory llvm/lib/Transforms/IPO:

ExtractFunction.cpp updated: 1.14 -> 1.15
---
Log message:

Make llvm-extract preserve the callingconv of prototypes in the extracted
code.


---
Diffs of the changes:  (+1 -0)

 ExtractFunction.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/Transforms/IPO/ExtractFunction.cpp
diff -u llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.14 llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.15
--- llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.14	Fri Oct 20 16:35:41 2006
+++ llvm/lib/Transforms/IPO/ExtractFunction.cpp	Thu Jan 25 11:38:26 2007
@@ -70,6 +70,7 @@
           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






More information about the llvm-commits mailing list