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

code.

llvm-svn: 33500
This commit is contained in:
Chris Lattner 2007-01-25 17:38:26 +00:00
parent ee132b5fce
commit 79f08506f1
1 changed files with 1 additions and 0 deletions

View File

@ -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