[lld] r195051 - Simplify. No functionality change.
Rui Ueyama
ruiu at google.com
Mon Nov 18 14:42:03 PST 2013
Author: ruiu
Date: Mon Nov 18 16:42:03 2013
New Revision: 195051
URL: http://llvm.org/viewvc/llvm-project?rev=195051&view=rev
Log:
Simplify. No functionality change.
Modified:
lld/trunk/lib/Core/SymbolTable.cpp
Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=195051&r1=195050&r2=195051&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Mon Nov 18 16:42:03 2013
@@ -317,9 +317,7 @@ bool SymbolTable::isDefined(StringRef sy
const Atom *atom = this->findByName(sym);
if (atom == nullptr)
return false;
- if (atom->definition() == Atom::definitionUndefined)
- return false;
- return true;
+ return atom->definition() != Atom::definitionUndefined;
}
void SymbolTable::addReplacement(const Atom *replaced,
More information about the llvm-commits
mailing list