[llvm-commits] [llvm] r110179 - in /llvm/trunk: include/llvm/Support/IRReader.h lib/AsmParser/Parser.cpp
Dan Gohman
gohman at apple.com
Tue Aug 3 18:13:49 PDT 2010
Author: djg
Date: Tue Aug 3 20:13:48 2010
New Revision: 110179
URL: http://llvm.org/viewvc/llvm-project?rev=110179&view=rev
Log:
Don't print the filename twice in file-not-found errors.
Modified:
llvm/trunk/include/llvm/Support/IRReader.h
llvm/trunk/lib/AsmParser/Parser.cpp
Modified: llvm/trunk/include/llvm/Support/IRReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRReader.h?rev=110179&r1=110178&r2=110179&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRReader.h (original)
+++ llvm/trunk/include/llvm/Support/IRReader.h Tue Aug 3 20:13:48 2010
@@ -60,8 +60,7 @@
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 @@
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;
}
Modified: llvm/trunk/lib/AsmParser/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/Parser.cpp?rev=110179&r1=110178&r2=110179&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/Parser.cpp (original)
+++ llvm/trunk/lib/AsmParser/Parser.cpp Tue Aug 3 20:13:48 2010
@@ -45,8 +45,7 @@
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr);
if (F == 0) {
Err = SMDiagnostic(Filename,
- "Could not open input file '" + Filename + "': " +
- ErrorStr);
+ "Could not open input file: " + ErrorStr);
return 0;
}
More information about the llvm-commits
mailing list