Stop the JIT from refusing to work just because the program it was compiled into
authorNick Lewycky <nicholas@mxc.ca>
Mon, 9 Aug 2010 07:20:20 +0000 (07:20 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 9 Aug 2010 07:20:20 +0000 (07:20 +0000)
was built with -static.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110564 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JIT.cpp

index 0eb87e403783325d49a4fb68b72e8624618d4ccb..677feb21e160b1fc12bc53cc3c058a97cf703f70 100644 (file)
@@ -219,11 +219,6 @@ ExecutionEngine *JIT::createJIT(Module *M,
                                 StringRef MArch,
                                 StringRef MCPU,
                                 const SmallVectorImpl<std::string>& MAttrs) {
-  // Make sure we can resolve symbols in the program as well. The zero arg
-  // to the function tells DynamicLibrary to load the program, not a library.
-  if (sys::DynamicLibrary::LoadLibraryPermanently(0, ErrorStr))
-    return 0;
-
   // Pick a target either via -march or by guessing the native arch.
   TargetMachine *TM = JIT::selectTarget(M, MArch, MCPU, MAttrs, ErrorStr);
   if (!TM || (ErrorStr && ErrorStr->length() > 0)) return 0;