mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
Style fix.
llvm-svn: 330785
This commit is contained in:
parent
a8d0b87f50
commit
ffa650a183
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user