[lld] r246770 - COFF: /delayload:<DLLNAME> is case-insensitive.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 07:49:48 PDT 2015
Author: ruiu
Date: Thu Sep 3 09:49:47 2015
New Revision: 246770
URL: http://llvm.org/viewvc/llvm-project?rev=246770&view=rev
Log:
COFF: /delayload:<DLLNAME> is case-insensitive.
Modified:
lld/trunk/COFF/Writer.cpp
lld/trunk/test/COFF/delayimports.test
Modified: lld/trunk/COFF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.cpp?rev=246770&r1=246769&r2=246770&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.cpp (original)
+++ lld/trunk/COFF/Writer.cpp Thu Sep 3 09:49:47 2015
@@ -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);
Modified: lld/trunk/test/COFF/delayimports.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/delayimports.test?rev=246770&r1=246769&r2=246770&view=diff
==============================================================================
--- lld/trunk/test/COFF/delayimports.test (original)
+++ lld/trunk/test/COFF/delayimports.test Thu Sep 3 09:49:47 2015
@@ -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
More information about the llvm-commits
mailing list