llvm.org GIT mirror llvm / 82d9366
[llvm-rtdyld] Fail early if we can't load dynamic libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253767 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 3 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
249249 if (sys::fs::is_regular_file(Dylib)) {
250250 std::string ErrMsg;
251251 if (sys::DynamicLibrary::LoadLibraryPermanently(Dylib.c_str(), &ErrMsg))
252 llvm::errs() << "Error loading '" << Dylib << "': "
253 << ErrMsg << "\n";
252 report_fatal_error("Error loading '" + Dylib + "': " + ErrMsg);
254253 } else
255 llvm::errs() << "Dylib not found: '" << Dylib << "'.\n";
254 report_fatal_error("Dylib not found: '" + Dylib + "'.");
256255 }
257256 }
258257