[llvm] r240366 - Extract an utility for computing symbol sizes on MachO and COFF.

Filipe Cabecinhas filcab at gmail.com
Mon Jun 22 20:52:37 PDT 2015


Ah, of course.
Thanks.
  Filipe

On Monday, June 22, 2015, Rafael EspĂ­ndola <rafael.espindola at gmail.com>
wrote:

> >> +  // Collect sorted symbol addresses. Include dummy addresses for the
> end
> >> +  // of each section.
> >> +  std::vector<SymEntry> Addresses;
> >> +  unsigned SymNum = 0;
> >> +  for (symbol_iterator I = O.symbol_begin(), E = O.symbol_end(); I !=
> E;
> >> ++I) {
> >
> > Why don't you use .symbols()?
>
>
> Because I save the symbol_iterator. Why? So I can use symbol_end() for
> the dummy entries for the section end.
>
> Cheers,
> Rafael
>


-- 
  F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150622/f53a889d/attachment.html>


More information about the llvm-commits mailing list