Skip to content

Commit c0f5648

Browse files
committed
Make a condition more explicit. NFC.
llvm-svn: 315666
1 parent 0141e55 commit c0f5648

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lld/ELF/Symbols.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@ class SymbolBody {
6262
bool isUndefined() const { return SymbolKind == UndefinedKind; }
6363
bool isDefined() const { return SymbolKind <= DefinedLast; }
6464
bool isCommon() const { return SymbolKind == DefinedCommonKind; }
65+
bool isShared() const { return SymbolKind == SharedKind; }
66+
bool isLocal() const { return IsLocal; }
67+
6568
bool isLazy() const {
6669
return SymbolKind == LazyArchiveKind || SymbolKind == LazyObjectKind;
6770
}
68-
bool isShared() const { return SymbolKind == SharedKind; }
71+
6972
bool isInCurrentDSO() const {
70-
return !isUndefined() && !isShared() && !isLazy();
73+
return SymbolKind == DefinedRegularKind || SymbolKind == DefinedCommonKind;
7174
}
72-
bool isLocal() const { return IsLocal; }
7375

7476
// True is this is an undefined weak symbol. This only works once
7577
// all input files have been added.

0 commit comments

Comments
 (0)