From 87e15c75854f56cc48afd3bae55b30e69245be64 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 24 Jan 2014 18:03:14 +0000 Subject: [PATCH] [PECOFF] Use constant instead of magic number. llvm-svn: 200019 --- lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp index 8dfa20a33942..54efd31e4169 100644 --- a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp @@ -337,8 +337,8 @@ PEHeaderChunk::PEHeaderChunk(const PECOFFLinkingContext &context) _coffHeader.Characteristics = characteristics; - // 0x10b indicates a normal PE32 executable. For PE32+ it should be 0x20b. - _peHeader.Magic = 0x10b; + // A 32-bit executable has PE32 magic (0x10b). + _peHeader.Magic = llvm::COFF::PEHeader::PE32; // The address of entry point relative to ImageBase. Windows executable // usually starts at address 0x401000.