[PECOFF] Use constant instead of magic number.

llvm-svn: 200019
This commit is contained in:
Rui Ueyama 2014-01-24 18:03:14 +00:00
parent cb40291100
commit 87e15c7585
1 changed files with 2 additions and 2 deletions

View File

@ -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.