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:
Duncan Sands 2010-12-20 10:57:01 +00:00
parent 784a176bc3
commit 8e4f4390bc

View File

@ -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 ||