summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-08-09 07:20:20 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-08-09 07:20:20 +0000
commitec846ac2ccfce003ea189cdc19317207d5e68328 (patch)
treeddda71dec16da6cd0c6940e7a72bc25bf74332ca /llvm/lib/ExecutionEngine/JIT/JIT.cpp
parenta6c1337239515d08693b95ba883acf43209322fe (diff)
downloadbcm5719-llvm-ec846ac2ccfce003ea189cdc19317207d5e68328.tar.gz
bcm5719-llvm-ec846ac2ccfce003ea189cdc19317207d5e68328.zip
Stop the JIT from refusing to work just because the program it was compiled into
was built with -static. llvm-svn: 110564
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 0eb87e40378..677feb21e16 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -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;
OpenPOWER on IntegriCloud