[lld] r330785 - Style fix.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 24 16:09:58 PDT 2018
Author: ruiu
Date: Tue Apr 24 16:09:57 2018
New Revision: 330785
URL: http://llvm.org/viewvc/llvm-project?rev=330785&view=rev
Log:
Style fix.
Modified:
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=330785&r1=330784&r2=330785&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Tue Apr 24 16:09:57 2018
@@ -364,8 +364,8 @@ void Writer::createRelocSections() {
log("createRelocSections");
// Don't use iterator here since we are adding to OutputSection
size_t OrigSize = OutputSections.size();
- for (size_t i = 0; i < OrigSize; i++) {
- OutputSection *OSec = OutputSections[i];
+ for (size_t I = 0; I < OrigSize; I++) {
+ OutputSection *OSec = OutputSections[I];
uint32_t Count = OSec->numRelocations();
if (!Count)
continue;
@@ -380,7 +380,7 @@ void Writer::createRelocSections() {
SyntheticSection *Section = createSyntheticSection(WASM_SEC_CUSTOM, Name);
raw_ostream &OS = Section->getStream();
- writeUleb128(OS, i, "reloc section");
+ writeUleb128(OS, I, "reloc section");
writeUleb128(OS, Count, "reloc count");
OSec->writeRelocations(OS);
}
More information about the llvm-commits
mailing list