1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Make ParseIRFile and getLazyIRFileModule incoporate the underlying

error message string into their own error message string, so that
the information isn't lost.

llvm-svn: 104887
This commit is contained in:
Dan Gohman 2010-05-27 20:47:38 +00:00
parent 3acc676fcd
commit 92ee877dcd

View File

@ -60,7 +60,8 @@ namespace llvm {
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
if (F == 0) {
Err = SMDiagnostic(Filename,
"Could not open input file '" + Filename + "'");
"Could not open input file "
"'" + Filename + "': " + ErrMsg);
return 0;
}
@ -98,7 +99,8 @@ namespace llvm {
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
if (F == 0) {
Err = SMDiagnostic(Filename,
"Could not open input file '" + Filename + "'");
"Could not open input file "
"'" + Filename + "': " + ErrMsg);
return 0;
}