[lld] r189413 - Use do-while instead of a magic number. No functionality change.
Rui Ueyama
ruiu at google.com
Tue Aug 27 16:10:26 PDT 2013
Author: ruiu
Date: Tue Aug 27 18:10:26 2013
New Revision: 189413
URL: http://llvm.org/viewvc/llvm-project?rev=189413&view=rev
Log:
Use do-while instead of a magic number. No functionality change.
Modified:
lld/trunk/lib/Core/Resolver.cpp
Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=189413&r1=189412&r2=189413&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Tue Aug 27 18:10:26 2013
@@ -193,8 +193,8 @@ void Resolver::resolveUndefines() {
_context.searchSharedLibrariesToOverrideTentativeDefinitions();
// keep looping until no more undefines were added in last loop
- unsigned int undefineGenCount = 0xFFFFFFFF;
- while (undefineGenCount != _symbolTable.size()) {
+ unsigned int undefineGenCount;
+ do {
undefineGenCount = _symbolTable.size();
std::vector<const UndefinedAtom *> undefines;
_symbolTable.undefines(undefines);
@@ -230,7 +230,7 @@ void Resolver::resolveUndefines() {
}
}
}
- }
+ } while (undefineGenCount != _symbolTable.size());
}
More information about the llvm-commits
mailing list