[MinGW] Add an lld specific option for requesting to delay load libraries
authorMartin Storsjo <martin@martin.st>
Mon, 5 Aug 2019 11:57:06 +0000 (11:57 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 5 Aug 2019 11:57:06 +0000 (11:57 +0000)
commitc92b3563c63547984516cbb1223d3cbfc8336fee
tree247a8037c0c9f0a458ad7c6fa04b50dc6408db99
parenta0cbe16ed5197c2f882e44b0c758576ae409124b
[MinGW] Add an lld specific option for requesting to delay load libraries

With GNU tools, delayload is handled completely differently. (One
creates a specific delayload import library using dlltool and then
links against it instead of the normal import library.)

Instead of requiring using -Xlink=-delayload:lib.dll, we can provide
an lld specific option for this.

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

llvm-svn: 367837
lld/MinGW/Driver.cpp
lld/MinGW/Options.td
lld/test/MinGW/driver.test