minor cleanups. Add provisions for a new standard BLOCKINFO_BLOCK
[oota-llvm.git] / include / llvm / GlobalAlias.h
index 04bd5fbd7fee3bc69adf0978c0caaad5a64b7c52..bbd19ba8816d802e8b382bdf462b93b949b31ec2 100644 (file)
@@ -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) {