mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2),
which is significantly more efficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -657,7 +657,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
|
||||
for (Function::arg_iterator
|
||||
I = newMain->arg_begin(), E = newMain->arg_end(),
|
||||
OI = oldMain->arg_begin(); I != E; ++I, ++OI) {
|
||||
I->setName(OI->getName()); // Copy argument names from oldMain
|
||||
I->takeName(OI); // Copy argument names from oldMain
|
||||
args.push_back(I);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user