COFF: actually synthesize CONST imports properly
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 28 Apr 2017 17:06:40 +0000 (17:06 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 28 Apr 2017 17:06:40 +0000 (17:06 +0000)
commit5c98b74536e3ea4b491f47918828ac07c07e3def
treec4a8eb1467426e2fa63a4e824793eedd03546780
parent24db6b800fcdf0b45f1e2489ec3a7fb57937f0d1
COFF: actually synthesize CONST imports properly

CONSTANT imports expect both the `_imp_` prefixed and non-prefixed
symbols should be added to the symbol table.  This allows for linking
symbols like _NSConcreteGlobalBlock in WinObjC.  The previous change
would generate the import library properly by handling the option but
would not consume the generated entry properly.

llvm-svn: 301657
lld/COFF/InputFiles.cpp
lld/COFF/InputFiles.h
lld/test/COFF/Inputs/constant-import.s [new file with mode: 0644]
lld/test/COFF/constant.test [new file with mode: 0644]