[lld] r315666 - Make a condition more explicit. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 20:37:11 PDT 2017
Author: ruiu
Date: Thu Oct 12 20:37:11 2017
New Revision: 315666
URL: http://llvm.org/viewvc/llvm-project?rev=315666&view=rev
Log:
Make a condition more explicit. NFC.
Modified:
lld/trunk/ELF/Symbols.h
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=315666&r1=315665&r2=315666&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Thu Oct 12 20:37:11 2017
@@ -62,14 +62,16 @@ public:
bool isUndefined() const { return SymbolKind == UndefinedKind; }
bool isDefined() const { return SymbolKind <= DefinedLast; }
bool isCommon() const { return SymbolKind == DefinedCommonKind; }
+ bool isShared() const { return SymbolKind == SharedKind; }
+ bool isLocal() const { return IsLocal; }
+
bool isLazy() const {
return SymbolKind == LazyArchiveKind || SymbolKind == LazyObjectKind;
}
- bool isShared() const { return SymbolKind == SharedKind; }
+
bool isInCurrentDSO() const {
- return !isUndefined() && !isShared() && !isLazy();
+ return SymbolKind == DefinedRegularKind || SymbolKind == DefinedCommonKind;
}
- bool isLocal() const { return IsLocal; }
// True is this is an undefined weak symbol. This only works once
// all input files have been added.
More information about the llvm-commits
mailing list