File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,16 @@ class SymbolBody {
62
62
bool isUndefined () const { return SymbolKind == UndefinedKind; }
63
63
bool isDefined () const { return SymbolKind <= DefinedLast; }
64
64
bool isCommon () const { return SymbolKind == DefinedCommonKind; }
65
+ bool isShared () const { return SymbolKind == SharedKind; }
66
+ bool isLocal () const { return IsLocal; }
67
+
65
68
bool isLazy () const {
66
69
return SymbolKind == LazyArchiveKind || SymbolKind == LazyObjectKind;
67
70
}
68
- bool isShared () const { return SymbolKind == SharedKind; }
71
+
69
72
bool isInCurrentDSO () const {
70
- return ! isUndefined () && ! isShared () && ! isLazy () ;
73
+ return SymbolKind == DefinedRegularKind || SymbolKind == DefinedCommonKind ;
71
74
}
72
- bool isLocal () const { return IsLocal; }
73
75
74
76
// True is this is an undefined weak symbol. This only works once
75
77
// all input files have been added.
You can’t perform that action at this time.
0 commit comments