summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 20:47:38 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 20:47:38 +0000
commitcaf0ab658d19d3f592823082e1816bc625a9608b (patch)
tree2823bb0e10e6b6377a251f9451290abd3e02a511
parentd877f2a0139b8c3ed9c85b1687f410a09541f1e7 (diff)
downloadbcm5719-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.h6
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;
}
OpenPOWER on IntegriCloud