diff options
| author | Owen Anderson <resistor@mac.com> | 2008-04-13 19:15:17 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-04-13 19:15:17 +0000 |
| commit | 1f6fbc4bc350d567ba2b6cfa1f27b7de3e54cd99 (patch) | |
| tree | b3e3a967a347e9456301083f8bdd851e6811fbe0 /llvm/tools/bugpoint | |
| parent | 861a2265864982319c1a658135663ac72d676e29 (diff) | |
| download | bcm5719-llvm-1f6fbc4bc350d567ba2b6cfa1f27b7de3e54cd99.tar.gz bcm5719-llvm-1f6fbc4bc350d567ba2b6cfa1f27b7de3e54cd99.zip | |
Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2),
which is significantly more efficient.
llvm-svn: 49614
Diffstat (limited to 'llvm/tools/bugpoint')
| -rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 536c3dbd744..47d90e51ef3 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -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); } |

