mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Object/Archive: Give Child a operator < for map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144757 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc296639d9
commit
8a2549febc
@ -34,6 +34,10 @@ public:
|
||||
return (Parent == other.Parent) && (Data.begin() == other.Data.begin());
|
||||
}
|
||||
|
||||
bool operator <(const Child &other) const {
|
||||
return Data.begin() < other.Data.begin();
|
||||
}
|
||||
|
||||
Child getNext() const;
|
||||
error_code getName(StringRef &Result) const;
|
||||
int getLastModified() const;
|
||||
@ -64,6 +68,10 @@ public:
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
bool operator <(const child_iterator &other) const {
|
||||
return child < other.child;
|
||||
}
|
||||
|
||||
child_iterator& operator++() { // Preincrement
|
||||
child = child.getNext();
|
||||
return *this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user