aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/GlobalAlias.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-04-29 18:02:48 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-04-29 18:02:48 +0000
commitc6c98af9e5814e8066c82f20ca11cf646a5fc289 (patch)
tree386170515eb43b2c98aa6240bed797d17406313c /include/llvm/GlobalAlias.h
parentee181bc899d06c642f27e6a5157e61a5079d0acd (diff)
downloadexternal_llvm-c6c98af9e5814e8066c82f20ca11cf646a5fc289.zip
external_llvm-c6c98af9e5814e8066c82f20ca11cf646a5fc289.tar.gz
external_llvm-c6c98af9e5814e8066c82f20ca11cf646a5fc289.tar.bz2
Implement review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalAlias.h')
-rw-r--r--include/llvm/GlobalAlias.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/GlobalAlias.h b/include/llvm/GlobalAlias.h
index 04bd5fb..bbd19ba 100644
--- a/include/llvm/GlobalAlias.h
+++ b/include/llvm/GlobalAlias.h
@@ -75,7 +75,10 @@ public:
Constant* getAliasee() {
return cast_or_null<Constant>(getOperand(0));
}
-
+ /// getAliasedGlobal() - Aliasee can be either global or bitcast of
+ /// global. This method retrives the global for both aliasee flavours.
+ const GlobalValue* getAliasedGlobal() 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) {