mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24c5b36841
commit
efd2d5e1c4
@ -242,10 +242,9 @@ error_code Archive::Symbol::getMember(child_iterator &Result) const {
|
|||||||
|
|
||||||
Archive::Symbol Archive::Symbol::getNext() const {
|
Archive::Symbol Archive::Symbol::getNext() const {
|
||||||
Symbol t(*this);
|
Symbol t(*this);
|
||||||
const char *buf = Parent->SymbolTable->getBuffer()->getBufferStart();
|
// Go to one past next null.
|
||||||
buf += t.StringIndex;
|
t.StringIndex =
|
||||||
while (*buf++); // Go to one past next null.
|
Parent->SymbolTable->getBuffer()->getBuffer().find('\0', t.StringIndex) + 1;
|
||||||
t.StringIndex = buf - Parent->SymbolTable->getBuffer()->getBufferStart();
|
|
||||||
++t.SymbolIndex;
|
++t.SymbolIndex;
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user