diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-11 22:28:56 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-11 22:28:56 +0000 |
commit | e846dd89c173d462d197046b76d37588896623f3 (patch) | |
tree | 252453d033e19d450593fa89952c7b5cd76d3642 /include/llvm/GlobalAlias.h | |
parent | 7db30ba70111bd082d854e00f0b854c8d91eed76 (diff) | |
download | external_llvm-e846dd89c173d462d197046b76d37588896623f3.zip external_llvm-e846dd89c173d462d197046b76d37588896623f3.tar.gz external_llvm-e846dd89c173d462d197046b76d37588896623f3.tar.bz2 |
Add helper for ultimate aliasee resoltion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalAlias.h')
-rw-r--r-- | include/llvm/GlobalAlias.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/GlobalAlias.h b/include/llvm/GlobalAlias.h index 572de67..1dee041 100644 --- a/include/llvm/GlobalAlias.h +++ b/include/llvm/GlobalAlias.h @@ -78,7 +78,12 @@ public: /// getAliasedGlobal() - Aliasee can be either global or bitcast of /// global. This method retrives the global for both aliasee flavours. const GlobalValue* getAliasedGlobal() const; - + + /// resolveAliasedGlobal() - This method tries to ultimately resolve alias by + /// going through aliasing chain and trying to find the very last + /// global. Return NULL is cycle was found. + const GlobalValue* resolveAliasedGlobal() const; + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const GlobalAlias *) { return true; } static inline bool classof(const Value *V) { |