Using "final" as a variable name is a bit confusing in C++11, so rename it.

llvm-svn: 199526
This commit is contained in:
Rui Ueyama 2014-01-18 00:27:03 +00:00
parent 436c42ec3d
commit d9696cbda8
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ private:
bool resolveUndefines();
void updateReferences();
void deadStripOptimize();
bool checkUndefines(bool final);
bool checkUndefines(bool isFinal);
void removeCoalescedAwayAtoms();
void checkDylibSymbolCollisions();
void linkTimeOptimize();

View File

@ -360,9 +360,9 @@ void Resolver::deadStripOptimize() {
}
// error out if some undefines remain
bool Resolver::checkUndefines(bool final) {
bool Resolver::checkUndefines(bool isFinal) {
// when using LTO, undefines are checked after bitcode is optimized
if (_haveLLVMObjs && !final)
if (_haveLLVMObjs && !isFinal)
return false;
// build vector of remaining undefined symbols