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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jun 22 20:51:29 PDT 2015


>> +  // 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



More information about the llvm-commits mailing list