[lld] r195663 - Early return.
Rui Ueyama
ruiu at google.com
Mon Nov 25 09:09:30 PST 2013
Author: ruiu
Date: Mon Nov 25 11:09:29 2013
New Revision: 195663
URL: http://llvm.org/viewvc/llvm-project?rev=195663&view=rev
Log:
Early return.
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=195663&r1=195662&r2=195663&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Mon Nov 25 11:09:29 2013
@@ -46,12 +46,14 @@ void SymbolTable::add(const AbsoluteAtom
void SymbolTable::add(const DefinedAtom &atom) {
if (!atom.name().empty() &&
- (atom.scope() != DefinedAtom::scopeTranslationUnit)) {
+ atom.scope() != DefinedAtom::scopeTranslationUnit) {
// Named atoms cannot be merged by content.
assert(atom.merge() != DefinedAtom::mergeByContent);
// Track named atoms that are not scoped to file (static).
this->addByName(atom);
- } else if (atom.merge() == DefinedAtom::mergeByContent) {
+ return;
+ }
+ if (atom.merge() == DefinedAtom::mergeByContent) {
// Named atoms cannot be merged by content.
assert(atom.name().empty());
this->addByContent(atom);
More information about the llvm-commits
mailing list