SmallPtrSet<const GlobalValue*, 3> Visited;
// Check if we need to stop early.
- if (stopOnWeak && hasWeakLinkage())
+ if (stopOnWeak && mayBeOverridden())
return this;
const GlobalValue *GV = getAliasedGlobal();
// Iterate over aliasing chain, stopping on weak alias if necessary.
while (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV)) {
- if (stopOnWeak && GA->hasWeakLinkage())
+ if (stopOnWeak && GA->mayBeOverridden())
break;
GV = GA->getAliasedGlobal();