[lld] r259455 - Replace auto with the real type.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 18:29:03 PST 2016
Author: ruiu
Date: Mon Feb 1 20:29:03 2016
New Revision: 259455
URL: http://llvm.org/viewvc/llvm-project?rev=259455&view=rev
Log:
Replace auto with the real type.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=259455&r1=259454&r2=259455&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Feb 1 20:29:03 2016
@@ -144,7 +144,7 @@ template <class ELFT> void GotSection<EL
template <class ELFT> void GotSection<ELFT>::writeTo(uint8_t *Buf) {
Target->writeGotHeader(Buf);
- for (const auto &L : MipsLocalGotPos) {
+ for (std::pair<uintX_t, size_t> &L : MipsLocalGotPos) {
uint8_t *Entry = Buf + L.second * sizeof(uintX_t);
write<uintX_t, ELFT::TargetEndianness, sizeof(uintX_t)>(Entry, L.first);
}
More information about the llvm-commits
mailing list