<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 18, 2016 at 8:50 AM, Sangjin Han via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I read the thread (<a href="http://lists.llvm.org/pipermail/llvm-dev/2016-February/096115.html" target="_blank">http://lists.llvm.org/pipermail/llvm-dev/2016-February/096115.html</a> ).</div><div>I think the wonderful feature of the MinGW/Cygwin ld is the option --enable-auto-import.</div><div>The option is limited to COFF, but LINK.exe doesn't have it.</div><div>Could we add the feature to lld-link ?</div><div>If it is possible, many people will change the coding pattern for using DLL. -- no more if-def declspec(dllimport)</div></div></blockquote><div><br></div><div>Technically we can add the feature, but I'm skeptical if it's worth the cost associated with it. Also, if you rely on that feature, then your program is no longer linkable with the MSVC linker, so I'd expect that most people would continue using declspec(dllimport) anyways. That means the feature wouldn't be used often.</div></div></div></div>