[llvm-commits] CVS: llvm/include/llvm/Function.h GlobalAlias.h
Anton Korobeynikov
asl at math.spbu.ru
Sun Apr 29 11:03:19 PDT 2007
Changes in directory llvm/include/llvm:
Function.h updated: 1.83 -> 1.84
GlobalAlias.h updated: 1.2 -> 1.3
---
Log message:
Implement review feedback
---
Diffs of the changes: (+6 -3)
Function.h | 4 ++--
GlobalAlias.h | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.83 llvm/include/llvm/Function.h:1.84
--- llvm/include/llvm/Function.h:1.83 Sat Apr 28 08:44:59 2007
+++ llvm/include/llvm/Function.h Sun Apr 29 13:02:48 2007
@@ -150,12 +150,12 @@
/// 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
Index: llvm/include/llvm/GlobalAlias.h
diff -u llvm/include/llvm/GlobalAlias.h:1.2 llvm/include/llvm/GlobalAlias.h:1.3
--- llvm/include/llvm/GlobalAlias.h:1.2 Sat Apr 28 08:44:59 2007
+++ llvm/include/llvm/GlobalAlias.h Sun Apr 29 13:02:48 2007
@@ -75,7 +75,10 @@
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) {
More information about the llvm-commits
mailing list