mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +00:00
[llvm-nm] Prefer range-based loop over explicit iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f181d046e0
commit
e1244044f3
@ -877,9 +877,8 @@ static char getNMTypeChar(SymbolicFile &Obj, basic_symbol_iterator I) {
|
||||
// file or zero it is not present.
|
||||
static unsigned getNsectForSegSect(MachOObjectFile *Obj) {
|
||||
unsigned Nsect = 1;
|
||||
for (section_iterator I = Obj->section_begin(), E = Obj->section_end();
|
||||
I != E; ++I) {
|
||||
DataRefImpl Ref = I->getRawDataRefImpl();
|
||||
for (auto &S : Obj->sections()) {
|
||||
DataRefImpl Ref = S.getRawDataRefImpl();
|
||||
StringRef SectionName;
|
||||
Obj->getSectionName(Ref, SectionName);
|
||||
StringRef SegmentName = Obj->getSectionFinalSegmentName(Ref);
|
||||
|
Loading…
x
Reference in New Issue
Block a user