mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 22:26:16 +00:00
Fix the build for MSVC, it doesn't support extended sizeof
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa6cf7e73c
commit
52d7b9c0aa
@ -582,10 +582,10 @@ void WinCOFFObjectWriter::WriteFileHeader(const COFF::header &Header) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user