mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +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:
@ -930,7 +930,7 @@ static bool LinkFunctionBody(Function *Dest, Function *Src,
|
||||
Function::arg_iterator DI = Dest->arg_begin();
|
||||
for (Function::arg_iterator I = Src->arg_begin(), E = Src->arg_end();
|
||||
I != E; ++I, ++DI) {
|
||||
DI->setName(I->getName()); // Copy the name information over...
|
||||
DI->takeName(I); // Copy the name information over...
|
||||
|
||||
// Add a mapping to our local map
|
||||
ValueMap[I] = DI;
|
||||
|
Reference in New Issue
Block a user