[lld] Fix -Wrange-loop-analysis warnings
authorFangrui Song <maskray@google.com>
Wed, 1 Jan 2020 23:28:48 +0000 (15:28 -0800)
committerFangrui Song <maskray@google.com>
Wed, 1 Jan 2020 23:41:20 +0000 (15:41 -0800)
commit681b1be774964a804beabfb7c5e3bdab8f979e4a
treee457f6923eae0dd01824870883f413765177d14b
parent92b68c1937cd065a2fc44d18c1099de7da19b356
[lld] Fix -Wrange-loop-analysis warnings

One instance looks like a false positive:

lld/ELF/Relocations.cpp:1622:14: note: use reference type 'const std::pair<ThunkSection *, uint32_t> &' (aka 'cons
t pair<lld::elf::ThunkSection *, unsigned int> &') to prevent copying
        for (const std::pair<ThunkSection *, uint32_t> ts : isd->thunkSections)

It is not changed in this commit.
lld/COFF/InputFiles.cpp
lld/ELF/Driver.cpp
lld/ELF/SyntheticSections.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
lld/wasm/Driver.cpp