mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 20:26:31 +00:00
Fix isDiscardableIfUnused to include available_externally linkage.
AvailableExternally functions are discardable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20a294ea5b
commit
242f547927
@ -236,7 +236,8 @@ public:
|
||||
/// Whether the definition of this global may be discarded if it is not used
|
||||
/// in its compilation unit.
|
||||
static bool isDiscardableIfUnused(LinkageTypes Linkage) {
|
||||
return isLinkOnceLinkage(Linkage) || isLocalLinkage(Linkage);
|
||||
return isLinkOnceLinkage(Linkage) || isLocalLinkage(Linkage) ||
|
||||
isAvailableExternallyLinkage(Linkage);
|
||||
}
|
||||
|
||||
/// Whether the definition of this global may be replaced by something
|
||||
|
Loading…
x
Reference in New Issue
Block a user