]> granicus.if.org Git - llvm/commitdiff
[COFF] Use symbolic constants instead of hardcoded numbers. NFCI.
authorMartin Storsjo <martin@martin.st>
Fri, 20 Jul 2018 20:48:33 +0000 (20:48 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 20 Jul 2018 20:48:33 +0000 (20:48 +0000)
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

index 4bde1db3078eb3f999717f2a6fbb9ca977e657e8..dc11cc4bcffe64b7157d187a4dea675adcb7a080 100644 (file)
@@ -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);