llvm.org GIT mirror llvm / 9d44c88
[yaml2obj] - Replace a loop with write_zeros(). NFCI. This looks better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359444 91177308-0d34-0410-b5e6-96231b3b80d8 George Rimar 5 months ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3939 Align = 1;
4040 uint64_t CurrentOffset = InitialOffset + OS.tell();
4141 uint64_t AlignedOffset = alignTo(CurrentOffset, Align);
42 for (; CurrentOffset != AlignedOffset; ++CurrentOffset)
43 OS.write('\0');
42 OS.write_zeros(AlignedOffset - CurrentOffset);
4443 return AlignedOffset; // == CurrentOffset;
4544 }
4645