summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 18:10:23 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 18:10:23 +0000
commitf40905c31831bd002e39bf557bb361a2567f14e6 (patch)
tree8c6cbf17929dc86d34985d241490788db1dc074f /include
parentf7c84bf9ed78c4caeed23cb006ed842eaf5828e1 (diff)
downloadllvm-f40905c31831bd002e39bf557bb361a2567f14e6.tar.gz
llvm-f40905c31831bd002e39bf557bb361a2567f14e6.tar.bz2
llvm-f40905c31831bd002e39bf557bb361a2567f14e6.tar.xz
SCC: Remove redundant inline keywords, NFC
Functions declared in line in a class are inlined by default. There's no reason for the `inline` keyword. <rdar://problem/14292693> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/SCCIterator.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h
index 58ac149e32..d68a0f2364 100644
--- a/include/llvm/ADT/SCCIterator.h
+++ b/include/llvm/ADT/SCCIterator.h
@@ -151,47 +151,47 @@ class scc_iterator
}
}
- inline scc_iterator(NodeType *entryN) : visitNum(0) {
+ scc_iterator(NodeType *entryN) : visitNum(0) {
DFSVisitOne(entryN);
GetNextSCC();
}
// End is when the DFS stack is empty.
- inline scc_iterator() {}
+ scc_iterator() {}
public:
- static inline scc_iterator begin(const GraphT &G) {
+ static scc_iterator begin(const GraphT &G) {
return scc_iterator(GT::getEntryNode(G));
}
- static inline scc_iterator end(const GraphT &) { return scc_iterator(); }
+ static scc_iterator end(const GraphT &) { return scc_iterator(); }
/// \brief Direct loop termination test which is more efficient than
/// comparison with \c end().
- inline bool isAtEnd() const {
+ bool isAtEnd() const {
assert(!CurrentSCC.empty() || VisitStack.empty());
return CurrentSCC.empty();
}
- inline bool operator==(const scc_iterator &x) const {
+ bool operator==(const scc_iterator &x) const {
return VisitStack == x.VisitStack && CurrentSCC == x.CurrentSCC;
}
- inline bool operator!=(const scc_iterator &x) const { return !operator==(x); }
+ bool operator!=(const scc_iterator &x) const { return !operator==(x); }
- inline scc_iterator &operator++() {
+ scc_iterator &operator++() {
GetNextSCC();
return *this;
}
- inline scc_iterator operator++(int) {
+ scc_iterator operator++(int) {
scc_iterator tmp = *this;
++*this;
return tmp;
}
- inline const SccTy &operator*() const {
+ const SccTy &operator*() const {
assert(!CurrentSCC.empty() && "Dereferencing END SCC iterator!");
return CurrentSCC;
}
- inline SccTy &operator*() {
+ SccTy &operator*() {
assert(!CurrentSCC.empty() && "Dereferencing END SCC iterator!");
return CurrentSCC;
}