[lld] r231766 - Fix the local variable naming I used in r231765 to follow the LLD coding
Chandler Carruth
chandlerc at gmail.com
Tue Mar 10 00:54:34 PDT 2015
Author: chandlerc
Date: Tue Mar 10 02:54:34 2015
New Revision: 231766
URL: http://llvm.org/viewvc/llvm-project?rev=231766&view=rev
Log:
Fix the local variable naming I used in r231765 to follow the LLD coding
conventions. Sorry for missing this before I committed the patch!
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp?rev=231766&r1=231765&r2=231766&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Tue Mar 10 02:54:34 2015
@@ -971,13 +971,13 @@ BaseRelocChunk::createContents(ChunkVect
// Base relocations for the same memory page are grouped together
// and passed to createBaseRelocBlock.
for (auto it = relocSites.begin(), e = relocSites.end(); it != e;) {
- auto begin_it = it;
- uint64_t pageAddr = (begin_it->addr & ~mask);
+ auto beginIt = it;
+ uint64_t pageAddr = (beginIt->addr & ~mask);
for (++it; it != e; ++it)
if ((it->addr & ~mask) != pageAddr)
break;
- const BaseReloc *begin = &*begin_it;
- const BaseReloc *end = begin + (it - begin_it);
+ const BaseReloc *begin = &*beginIt;
+ const BaseReloc *end = begin + (it - beginIt);
std::vector<uint8_t> block = createBaseRelocBlock(pageAddr, begin, end);
contents.insert(contents.end(), block.begin(), block.end());
}
More information about the llvm-commits
mailing list