diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-03-10 07:54:34 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-03-10 07:54:34 +0000 |
| commit | 1bdbf48fff573653ba8ca612359af5af777e1fc4 (patch) | |
| tree | 50f9bbbd12ba9c8b914c26412aaddd0a60233f99 /lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp | |
| parent | b952e2287bfc86509746373593ad350c39a1c45c (diff) | |
| download | bcm5719-llvm-1bdbf48fff573653ba8ca612359af5af777e1fc4.tar.gz bcm5719-llvm-1bdbf48fff573653ba8ca612359af5af777e1fc4.zip | |
Fix the local variable naming I used in r231765 to follow the LLD coding
conventions. Sorry for missing this before I committed the patch!
llvm-svn: 231766
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp index 6fa5280df6c..d34e2d3d63f 100644 --- a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp @@ -971,13 +971,13 @@ BaseRelocChunk::createContents(ChunkVectorT &chunks) const { // 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()); } |

