mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +00:00
Discourage people from using isWeakForLinker when they should be using
mayBeOverridden. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122241 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
784a176bc3
commit
8e4f4390bc
@ -173,7 +173,9 @@ public:
|
||||
}
|
||||
|
||||
/// isWeakForLinker - Whether the definition of this global may be replaced at
|
||||
/// link time.
|
||||
/// link time. NB: Using this method outside of the code generators is almost
|
||||
/// always a mistake: when working at the IR level use mayBeOverridden instead
|
||||
/// as it knows about ODR semantics.
|
||||
static bool isWeakForLinker(LinkageTypes Linkage) {
|
||||
return Linkage == AvailableExternallyLinkage ||
|
||||
Linkage == WeakAnyLinkage ||
|
||||
|
Loading…
Reference in New Issue
Block a user