From 337fc79e64df694f00c9a31624d8a823a390a44e Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 20 Jul 2018 20:48:33 +0000 Subject: [PATCH] [COFF] Use symbolic constants instead of hardcoded numbers. NFCI. Patch by Martell Malone. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337614 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/COFFImportFile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Object/COFFImportFile.cpp b/lib/Object/COFFImportFile.cpp index 4bde1db3078..dc11cc4bcff 100644 --- a/lib/Object/COFFImportFile.cpp +++ b/lib/Object/COFFImportFile.cpp @@ -546,7 +546,12 @@ NewArchiveMember ObjectFactory::createWeakExternal(StringRef Sym, u16(0), IMAGE_SYM_CLASS_WEAK_EXTERNAL, 1}, - {{{2, 0, 0, 0, 3, 0, 0, 0}}, u32(0), u16(0), u16(0), uint8_t(0), 0}, + {{{2, 0, 0, 0, IMAGE_WEAK_EXTERN_SEARCH_ALIAS, 0, 0, 0}}, + u32(0), + u16(0), + u16(0), + IMAGE_SYM_CLASS_NULL, + 0}, }; SymbolTable[2].Name.Offset.Offset = sizeof(uint32_t); -- 2.50.1