Thoroughly rehack the dynamic linking mechanisms on Win32. The Win32
authorChris Lattner <sabre@nondot.org>
Fri, 28 May 2004 23:54:07 +0000 (23:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 May 2004 23:54:07 +0000 (23:54 +0000)
commitaafb1c16b4de9aaa5e33c035dabcacdc3b66396f
tree4db3b7f667538ca6a54fb69efbb1141c1e84c788
parent1c457b89bbe46e371e856bd559e0271c0fd7e175
Thoroughly rehack the dynamic linking mechanisms on Win32.  The Win32
dynamic linker does not automatically search libraries when looking up
symbols with GetProcAddress.  Because of this we have to emulate it.  The
only detail is that there doesn't seem to be a way to enumerate the
libraries loaded, so we have a gross hack (tm).

This make the JIT functional on win32 under cygwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/DynamicLinker.cpp