X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FGlobalAlias.h;h=b106116f375062812d7713ffc506f7572c26fea4;hb=b4cfd15d9901883cfb46ac3826e0a27573089372;hp=6dba21bf609637f49fca326f93b3ded51d505c69;hpb=71c8c175fb2a477b90efe745aaf48ed9265300a9;p=oota-llvm.git diff --git a/include/llvm/GlobalAlias.h b/include/llvm/GlobalAlias.h index 6dba21bf609..b106116f375 100644 --- a/include/llvm/GlobalAlias.h +++ b/include/llvm/GlobalAlias.h @@ -23,7 +23,6 @@ namespace llvm { class Module; class Constant; -class PointerType; template class SymbolTableListTraits; @@ -76,8 +75,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 stopOnWeak is false, then + /// the whole chain aliasing chain is traversed, otherwise - only strong + /// aliases. + const GlobalValue* resolveAliasedGlobal(bool stopOnWeak = true) const; // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const GlobalAlias *) { return true; }