aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/GlobalAlias.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-09 18:23:48 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-09 18:23:48 +0000
commit832b2a9cd8870211bf2d347d7b435beacbb06c8d (patch)
tree2c8499487682972aae62e62ecf86c320f70f4045 /include/llvm/GlobalAlias.h
parentbff66b0c6c8266a6f9ba6c9bd5d2541a4d4c6ec9 (diff)
downloadexternal_llvm-832b2a9cd8870211bf2d347d7b435beacbb06c8d.zip
external_llvm-832b2a9cd8870211bf2d347d7b435beacbb06c8d.tar.gz
external_llvm-832b2a9cd8870211bf2d347d7b435beacbb06c8d.tar.bz2
Fix incorrect linker behaviour: we shouldn't resolve weak aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalAlias.h')
-rw-r--r--include/llvm/GlobalAlias.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/GlobalAlias.h b/include/llvm/GlobalAlias.h
index 6dba21b..1081fc6 100644
--- a/include/llvm/GlobalAlias.h
+++ b/include/llvm/GlobalAlias.h
@@ -76,8 +76,10 @@ public:
/// resolveAliasedGlobal() - This method tries to ultimately resolve the alias
/// by going through the aliasing chain and trying to find the very last
- /// global. Returns NULL if a cycle was found.
- const GlobalValue* resolveAliasedGlobal() const;
+ /// global. Returns NULL if a cycle was found. If traverseWeak is true, then
+ /// the whole chain aliasing chain is traversed, otherwise - only strong
+ /// aliases.
+ const GlobalValue* resolveAliasedGlobal(bool traverseWeak = true) const;
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const GlobalAlias *) { return true; }