summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFImportFile.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-07-20 20:48:33 +0000
committerMartin Storsjo <martin@martin.st>2018-07-20 20:48:33 +0000
commit509f1668e51d6ef21d7a224de28f9ac98ef29f73 (patch)
treed58796ec507af8656f617a48cc63c94b410e91f3 /llvm/lib/Object/COFFImportFile.cpp
parenta6ffc9c8df8f8bb7ec36d011e0aed6e1e808916c (diff)
downloadbcm5719-llvm-509f1668e51d6ef21d7a224de28f9ac98ef29f73.tar.gz
bcm5719-llvm-509f1668e51d6ef21d7a224de28f9ac98ef29f73.zip
[COFF] Use symbolic constants instead of hardcoded numbers. NFCI.
Patch by Martell Malone. llvm-svn: 337614
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
-rw-r--r--llvm/lib/Object/COFFImportFile.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFImportFile.cpp b/llvm/lib/Object/COFFImportFile.cpp
index 4bde1db3078..dc11cc4bcff 100644
--- a/llvm/lib/Object/COFFImportFile.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud