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 | 786ff3c044b06bcde5f13512aa372cb22346bc92 (patch) | |
tree | 64879ed9512d091a233af08273b4141efe24da6a /include | |
parent | c67996a5f672cdfdf03324a26e744ca5fe087ba1 (diff) | |
download | external_llvm-786ff3c044b06bcde5f13512aa372cb22346bc92.zip external_llvm-786ff3c044b06bcde5f13512aa372cb22346bc92.tar.gz external_llvm-786ff3c044b06bcde5f13512aa372cb22346bc92.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/IRReader.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Support/IRReader.h b/include/llvm/Support/IRReader.h index 0dfc302..fe47c05 100644 --- a/include/llvm/Support/IRReader.h +++ b/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; } |