diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-04 01:13:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-04 01:13:48 +0000 |
commit | 582554555376cd60507c77cadb45edb88acfe7ed (patch) | |
tree | 0df2f68de715105aabf2bfc042c837012f7eacb6 /include/llvm/Support/IRReader.h | |
parent | 12cf5018be3dc450c666620f0c481ca363efa776 (diff) |
Don't print the filename twice in file-not-found errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRReader.h')
-rw-r--r-- | include/llvm/Support/IRReader.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/IRReader.h b/include/llvm/Support/IRReader.h index 3da6e85e25..a44da528ac 100644 --- a/include/llvm/Support/IRReader.h +++ b/include/llvm/Support/IRReader.h @@ -60,8 +60,7 @@ namespace llvm { MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg); if (F == 0) { Err = SMDiagnostic(Filename, - "Could not open input file " - "'" + Filename + "': " + ErrMsg); + "Could not open input file: " + ErrMsg); return 0; } @@ -99,8 +98,7 @@ namespace llvm { MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg); if (F == 0) { Err = SMDiagnostic(Filename, - "Could not open input file " - "'" + Filename + "': " + ErrMsg); + "Could not open input file: " + ErrMsg); return 0; } |