aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-08 20:55:49 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-08 20:55:49 +0000
commite2abfc2d8f0c8274f90b751ccdec1d01f27763fc (patch)
treec1fc2b8661dd0ac4a57341a7c7d7e9c8fad5883c /lib
parent783bf80e281ae00ca8adedc0a3f3438d21453b3c (diff)
downloadexternal_llvm-e2abfc2d8f0c8274f90b751ccdec1d01f27763fc.zip
external_llvm-e2abfc2d8f0c8274f90b751ccdec1d01f27763fc.tar.gz
external_llvm-e2abfc2d8f0c8274f90b751ccdec1d01f27763fc.tar.bz2
Use mayBeOverridden here, in anticipation of the
day when more linkage types will be handled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Globals.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp
index c917dfc..de1b247 100644
--- a/lib/VMCore/Globals.cpp
+++ b/lib/VMCore/Globals.cpp
@@ -252,7 +252,7 @@ const GlobalValue *GlobalAlias::resolveAliasedGlobal(bool stopOnWeak) const {
SmallPtrSet<const GlobalValue*, 3> Visited;
// Check if we need to stop early.
- if (stopOnWeak && hasWeakLinkage())
+ if (stopOnWeak && mayBeOverridden())
return this;
const GlobalValue *GV = getAliasedGlobal();
@@ -260,7 +260,7 @@ const GlobalValue *GlobalAlias::resolveAliasedGlobal(bool stopOnWeak) const {
// 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();