[llvm-commits] [llvm] r110564 - /llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Aug 9 00:20:20 PDT 2010
Author: nicholas
Date: Mon Aug 9 02:20:20 2010
New Revision: 110564
URL: http://llvm.org/viewvc/llvm-project?rev=110564&view=rev
Log:
Stop the JIT from refusing to work just because the program it was compiled into
was built with -static.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp?rev=110564&r1=110563&r2=110564&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp Mon Aug 9 02:20:20 2010
@@ -219,11 +219,6 @@
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;
More information about the llvm-commits
mailing list