diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:02:48 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:02:48 +0000 |
commit | c6c98af9e5814e8066c82f20ca11cf646a5fc289 (patch) | |
tree | 386170515eb43b2c98aa6240bed797d17406313c /include/llvm | |
parent | ee181bc899d06c642f27e6a5157e61a5079d0acd (diff) | |
download | external_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')
-rw-r--r-- | include/llvm/Function.h | 4 | ||||
-rw-r--r-- | include/llvm/GlobalAlias.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 71fb87e..b3b9716 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -150,12 +150,12 @@ public: /// removeFromParent - This method unlinks 'this' from the containing module, /// but does not delete it. /// - virtual void removeFromParent(); + void removeFromParent(); /// eraseFromParent - This method unlinks 'this' from the containing module /// and deletes it. /// - virtual void eraseFromParent(); + void eraseFromParent(); /// Get the underlying elements of the Function... the basic block list is 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) { |