mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Make llvm-extract preserve the callingconv of prototypes in the extracted
code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a4a83ca39
commit
338305b0b6
@ -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
Block a user