[llvm] r217820 - Fix the build for MSVC, it doesn't support extended sizeof
David Majnemer
david.majnemer at gmail.com
Mon Sep 15 13:28:38 PDT 2014
Author: majnemer
Date: Mon Sep 15 15:28:38 2014
New Revision: 217820
URL: http://llvm.org/viewvc/llvm-project?rev=217820&view=rev
Log:
Fix the build for MSVC, it doesn't support extended sizeof
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=217820&r1=217819&r2=217820&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Mon Sep 15 15:28:38 2014
@@ -582,10 +582,10 @@ void WinCOFFObjectWriter::WriteFileHeade
WriteLE32(Header.TimeDateStamp);
for (uint8_t MagicChar : COFF::BigObjMagic)
Write8(MagicChar);
- WriteZeros(sizeof(COFF::BigObjHeader::unused1));
- WriteZeros(sizeof(COFF::BigObjHeader::unused2));
- WriteZeros(sizeof(COFF::BigObjHeader::unused3));
- WriteZeros(sizeof(COFF::BigObjHeader::unused4));
+ WriteLE32(0);
+ WriteLE32(0);
+ WriteLE32(0);
+ WriteLE32(0);
WriteLE32(Header.NumberOfSections);
WriteLE32(Header.PointerToSymbolTable);
WriteLE32(Header.NumberOfSymbols);
More information about the llvm-commits
mailing list