[llvm-commits] CVS: llvm/include/llvm/Type.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 13 10:32:01 PDT 2003
Changes in directory llvm/include/llvm:
Type.h updated: 1.32 -> 1.33
---
Log message:
Remove explicit inline qualifiers when the implicit ones work just as well
---
Diffs of the changes: (+10 -10)
Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.32 llvm/include/llvm/Type.h:1.33
--- llvm/include/llvm/Type.h:1.32 Thu Oct 9 15:43:55 2003
+++ llvm/include/llvm/Type.h Mon Oct 13 10:30:59 2003
@@ -248,22 +248,22 @@
typedef TypeIterator _Self;
public:
- inline TypeIterator(const Type *ty, unsigned idx) : Ty(ty), Idx(idx) {}
- inline ~TypeIterator() {}
+ TypeIterator(const Type *ty, unsigned idx) : Ty(ty), Idx(idx) {}
+ ~TypeIterator() {}
- inline bool operator==(const _Self& x) const { return Idx == x.Idx; }
- inline bool operator!=(const _Self& x) const { return !operator==(x); }
+ bool operator==(const _Self& x) const { return Idx == x.Idx; }
+ bool operator!=(const _Self& x) const { return !operator==(x); }
- inline pointer operator*() const { return Ty->getContainedType(Idx); }
- inline pointer operator->() const { return operator*(); }
+ pointer operator*() const { return Ty->getContainedType(Idx); }
+ pointer operator->() const { return operator*(); }
- inline _Self& operator++() { ++Idx; return *this; } // Preincrement
- inline _Self operator++(int) { // Postincrement
+ _Self& operator++() { ++Idx; return *this; } // Preincrement
+ _Self operator++(int) { // Postincrement
_Self tmp = *this; ++*this; return tmp;
}
- inline _Self& operator--() { --Idx; return *this; } // Predecrement
- inline _Self operator--(int) { // Postdecrement
+ _Self& operator--() { --Idx; return *this; } // Predecrement
+ _Self operator--(int) { // Postdecrement
_Self tmp = *this; --*this; return tmp;
}
};
More information about the llvm-commits
mailing list