mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 21:11:36 +00:00
Simplify code.
llvm-svn: 143695
This commit is contained in:
parent
510b538e32
commit
26ed5d6390
@ -242,10 +242,9 @@ error_code Archive::Symbol::getMember(child_iterator &Result) const {
|
||||
|
||||
Archive::Symbol Archive::Symbol::getNext() const {
|
||||
Symbol t(*this);
|
||||
const char *buf = Parent->SymbolTable->getBuffer()->getBufferStart();
|
||||
buf += t.StringIndex;
|
||||
while (*buf++); // Go to one past next null.
|
||||
t.StringIndex = buf - Parent->SymbolTable->getBuffer()->getBufferStart();
|
||||
// Go to one past next null.
|
||||
t.StringIndex =
|
||||
Parent->SymbolTable->getBuffer()->getBuffer().find('\0', t.StringIndex) + 1;
|
||||
++t.SymbolIndex;
|
||||
return t;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user