llvm.org GIT mirror llvm / 2356f2b
This never returns end(), simplify to use Child instead of iterator. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251876 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
2 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
141141 , SymbolIndex(symi)
142142 , StringIndex(stri) {}
143143 StringRef getName() const;
144 ErrorOr<child_iterator> getMember() const;
144 ErrorOr<Child> getMember() const;
145145 Symbol getNext() const;
146146 };
147147
401401 return Parent->getSymbolTable().begin() + StringIndex;
402402 }
403403
404 ErrorOrchild_iterator> Archive::Symbol::getMember() const {
404 ErrorOrChild> Archive::Symbol::getMember() const {
405405 const char *Buf = Parent->getSymbolTable().begin();
406406 const char *Offsets = Buf;
407407 if (Parent->kind() == K_MIPS64)
446446 }
447447
448448 const char *Loc = Parent->getData().begin() + Offset;
449 child_iterator Iter(Child(Parent, Loc));
450 return Iter;
449 return Child(Parent, Loc);
451450 }
452451
453452 Archive::Symbol Archive::Symbol::getNext() const {