mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-24 04:09:47 +00:00
Make ParseIRFile and getLazyIRFileModule incoporate the underlying
error message string into their own error message string, so that the information isn't lost. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104887 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2f500aaed
commit
8983846e69
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user