mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
[Object][ELF] ELFEntityIterator : Add operators for random access
Fix review comments from djasper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bea785427
commit
abc795d1f6
@ -96,13 +96,13 @@ public:
|
||||
|
||||
ELFEntityIterator &operator+(difference_type n) {
|
||||
assert(Current && "Attempted to increment an invalid iterator!");
|
||||
Current += n;
|
||||
Current += (n * EntitySize);
|
||||
return *this;
|
||||
}
|
||||
|
||||
ELFEntityIterator &operator-(difference_type n) {
|
||||
assert(Current && "Attempted to subtract an invalid iterator!");
|
||||
Current -= n;
|
||||
Current -= (n * EntitySize);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user