[COFF] Fix delay import directory iterator
authorJoseph Tremoulet <jotrem@microsoft.com>
Thu, 4 Apr 2019 14:13:28 +0000 (14:13 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Thu, 4 Apr 2019 14:13:28 +0000 (14:13 +0000)
commit9f598ac7062cfb72d17d59a8f2ab322d2d31a60d
tree01982f12cfdbc733a86ad55754a64c3fa0effede
parentb28b4c903685e2e4537ba48fc5b818f028def1d9
[COFF] Fix delay import directory iterator

Summary:
Take the Index into account in `getDelayImportTable`, otherwise we
always return the entry for the first delay DLL reference.

Reviewers: ruiu

Reviewed By: ruiu

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60081

llvm-svn: 357697
lld/test/COFF/Inputs/delayimporttables-dll1.yaml [new file with mode: 0644]
lld/test/COFF/Inputs/delayimporttables-dll2.yaml [new file with mode: 0644]
lld/test/COFF/delayimporttables.yaml [new file with mode: 0644]
llvm/lib/Object/COFFObjectFile.cpp