[llvm-branch-commits] [llvm-branch] r134488 - /llvm/branches/type-system-rewrite/include/llvm/GlobalAlias.h
Chris Lattner
sabre at nondot.org
Wed Jul 6 00:44:23 PDT 2011
Author: lattner
Date: Wed Jul 6 02:44:23 2011
New Revision: 134488
URL: http://llvm.org/viewvc/llvm-project?rev=134488&view=rev
Log:
random tidying up
Modified:
llvm/branches/type-system-rewrite/include/llvm/GlobalAlias.h
Modified: llvm/branches/type-system-rewrite/include/llvm/GlobalAlias.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/include/llvm/GlobalAlias.h?rev=134488&r1=134487&r2=134488&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/include/llvm/GlobalAlias.h (original)
+++ llvm/branches/type-system-rewrite/include/llvm/GlobalAlias.h Wed Jul 6 02:44:23 2011
@@ -63,23 +63,23 @@
virtual void eraseFromParent();
/// set/getAliasee - These methods retrive and set alias target.
- void setAliasee(Constant* GV);
- const Constant* getAliasee() const {
+ void setAliasee(Constant *GV);
+ const Constant *getAliasee() const {
return cast_or_null<Constant>(getOperand(0));
}
- Constant* getAliasee() {
+ 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;
+ const GlobalValue *getAliasedGlobal() const;
/// 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. If stopOnWeak is false, then
/// the whole chain aliasing chain is traversed, otherwise - only strong
/// aliases.
- const GlobalValue* resolveAliasedGlobal(bool stopOnWeak = true) const;
+ 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; }
More information about the llvm-branch-commits
mailing list