[llvm] r232298 - Remove some unnecessary 'inline' keywords
David Blaikie
dblaikie at gmail.com
Sat Mar 14 18:21:37 PDT 2015
Author: dblaikie
Date: Sat Mar 14 20:21:37 2015
New Revision: 232298
URL: http://llvm.org/viewvc/llvm-project?rev=232298&view=rev
Log:
Remove some unnecessary 'inline' keywords
Modified:
llvm/trunk/include/llvm/Analysis/IntervalIterator.h
Modified: llvm/trunk/include/llvm/Analysis/IntervalIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/IntervalIterator.h?rev=232298&r1=232297&r2=232298&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/IntervalIterator.h (original)
+++ llvm/trunk/include/llvm/Analysis/IntervalIterator.h Sat Mar 14 20:21:37 2015
@@ -118,7 +118,7 @@ public:
}
}
- inline ~IntervalIterator() {
+ ~IntervalIterator() {
if (IOwnMem)
while (!IntStack.empty()) {
delete operator*();
@@ -126,13 +126,13 @@ public:
}
}
- inline bool operator==(const _Self& x) const { return IntStack == x.IntStack;}
- inline bool operator!=(const _Self& x) const { return !operator==(x); }
+ bool operator==(const _Self &x) const { return IntStack == x.IntStack; }
+ bool operator!=(const _Self &x) const { return !(*this == x); }
- inline const Interval *operator*() const { return IntStack.back().first; }
- inline Interval *operator*() { return IntStack.back().first; }
- inline const Interval *operator->() const { return operator*(); }
- inline Interval *operator->() { return operator*(); }
+ const Interval *operator*() const { return IntStack.back().first; }
+ Interval *operator*() { return IntStack.back().first; }
+ const Interval *operator->() const { return operator*(); }
+ Interval *operator->() { return operator*(); }
_Self& operator++() { // Preincrement
assert(!IntStack.empty() && "Attempting to use interval iterator at end!");
@@ -156,7 +156,7 @@ public:
return *this;
}
- inline _Self operator++(int) { // Postincrement
+ _Self operator++(int) { // Postincrement
_Self tmp = *this; ++*this; return tmp;
}
More information about the llvm-commits
mailing list