diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-27 20:47:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-27 20:47:38 +0000 |
commit | caf0ab658d19d3f592823082e1816bc625a9608b (patch) | |
tree | 2823bb0e10e6b6377a251f9451290abd3e02a511 | |
parent | d877f2a0139b8c3ed9c85b1687f410a09541f1e7 (diff) | |
download | bcm5719-llvm-caf0ab658d19d3f592823082e1816bc625a9608b.tar.gz bcm5719-llvm-caf0ab658d19d3f592823082e1816bc625a9608b.zip |
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
-rw-r--r-- | llvm/include/llvm/Support/IRReader.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/IRReader.h b/llvm/include/llvm/Support/IRReader.h index 0dfc302e242..fe47c057558 100644 --- a/llvm/include/llvm/Support/IRReader.h +++ b/llvm/include/llvm/Support/IRReader.h @@ -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; } |