mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +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(),
|
Function *New = new Function(I->getFunctionType(),
|
||||||
GlobalValue::ExternalLinkage,
|
GlobalValue::ExternalLinkage,
|
||||||
I->getName());
|
I->getName());
|
||||||
|
New->setCallingConv(I->getCallingConv());
|
||||||
I->setName(""); // Remove Old name
|
I->setName(""); // Remove Old name
|
||||||
|
|
||||||
// If it's not the named function, delete the body of the function
|
// If it's not the named function, delete the body of the function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user