[llvm] r228883 - Unbreak buildbots
David Majnemer
david.majnemer at gmail.com
Wed Feb 11 14:51:55 PST 2015
Author: majnemer
Date: Wed Feb 11 16:51:55 2015
New Revision: 228883
URL: http://llvm.org/viewvc/llvm-project?rev=228883&view=rev
Log:
Unbreak buildbots
The next offset should be updated as well.
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=228883&r1=228882&r2=228883&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Wed Feb 11 16:51:55 2015
@@ -940,7 +940,8 @@ void WinCOFFObjectWriter::WriteObject(MC
if (IsPhysicalSection(Sec)) {
// Align the section data to a four byte boundary.
- Sec->Header.PointerToRawData = RoundUpToAlignment(offset, 4);
+ offset = RoundUpToAlignment(offset, 4);
+ Sec->Header.PointerToRawData = offset;
offset += Sec->Header.SizeOfRawData;
}
More information about the llvm-commits
mailing list