Skip to content
Snippets Groups Projects
Commit 0acf6b00 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Remove some duplication.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66347 91177308-0d34-0410-b5e6-96231b3b80d8
parent 667d4b8d
No related merge requests found
......@@ -261,16 +261,19 @@ namespace llvmc {
return *this;
}
inline bool operator==(const ThisType& I) const
{ return EdgeIter == I.EdgeIter; }
inline bool operator!=(const ThisType& I) const
{ return EdgeIter != I.EdgeIter; }
inline bool operator==(const ThisType& I) const {
assert(OwningGraph == I.OwningGraph);
return EdgeIter == I.EdgeIter;
}
inline bool operator!=(const ThisType& I) const {
return !this->operator==(I);
}
inline pointer operator*() const {
return &OwningGraph->getNode((*EdgeIter)->ToolName());
}
inline pointer operator->() const {
return &OwningGraph->getNode((*EdgeIter)->ToolName());
return this->operator*();
}
ThisType& operator++() { ++EdgeIter; return *this; } // Preincrement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment