[llvm] r253767 - [llvm-rtdyld] Fail early if we can't load dynamic libraries.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 20 21:58:19 PST 2015
Author: davide
Date: Fri Nov 20 23:58:19 2015
New Revision: 253767
URL: http://llvm.org/viewvc/llvm-project?rev=253767&view=rev
Log:
[llvm-rtdyld] Fail early if we can't load dynamic libraries.
Modified:
llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
Modified: llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp?rev=253767&r1=253766&r2=253767&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp (original)
+++ llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp Fri Nov 20 23:58:19 2015
@@ -250,10 +250,9 @@ static void loadDylibs() {
if (sys::fs::is_regular_file(Dylib)) {
std::string ErrMsg;
if (sys::DynamicLibrary::LoadLibraryPermanently(Dylib.c_str(), &ErrMsg))
- llvm::errs() << "Error loading '" << Dylib << "': "
- << ErrMsg << "\n";
+ report_fatal_error("Error loading '" + Dylib + "': " + ErrMsg);
} else
- llvm::errs() << "Dylib not found: '" << Dylib << "'.\n";
+ report_fatal_error("Dylib not found: '" + Dylib + "'.");
}
}
More information about the llvm-commits
mailing list