COFF: /delayload:<DLLNAME> is case-insensitive.

llvm-svn: 246770
This commit is contained in:
Rui Ueyama 2015-09-03 14:49:47 +00:00
parent 491a1bd998
commit 6295b27184
2 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ void Writer::createImportTables() {
for (ImportFile *File : Symtab->ImportFiles) {
if (DefinedImportThunk *Thunk = File->ThunkSym)
Text->addChunk(Thunk->getChunk());
if (Config->DelayLoads.count(File->DLLName)) {
if (Config->DelayLoads.count(StringRef(File->DLLName).lower())) {
DelayIdata.add(File->ImpSym);
} else {
Idata.add(File->ImpSym);

View File

@ -1,5 +1,5 @@
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console \
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:std64.DLL \
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:STD64.DLL \
# RUN: /alternatename:__delayLoadHelper2=main
# RUN: llvm-readobj -coff-imports %t.exe | FileCheck -check-prefix=IMPORT %s
# RUN: llvm-readobj -coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s