forked from OSchip/llvm-project
Make llvm-extract preserve the callingconv of prototypes in the extracted
code. llvm-svn: 33500
This commit is contained in:
parent
ee132b5fce
commit
79f08506f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue