summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/Parser.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-04 01:13:48 +0000
committerDan Gohman <gohman@apple.com>2010-08-04 01:13:48 +0000
commit47053d972b979d9b8f10faeb20c7e67349e9ecba (patch)
tree5c11ace4db0dcb321a2c660ae6f14f12d5ffcb9c /llvm/lib/AsmParser/Parser.cpp
parent6586724f71b5962038ee9c1196ecb52341e2dde8 (diff)
downloadbcm5719-llvm-47053d972b979d9b8f10faeb20c7e67349e9ecba.tar.gz
bcm5719-llvm-47053d972b979d9b8f10faeb20c7e67349e9ecba.zip
Don't print the filename twice in file-not-found errors.
llvm-svn: 110179
Diffstat (limited to 'llvm/lib/AsmParser/Parser.cpp')
-rw-r--r--llvm/lib/AsmParser/Parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp
index e511cbe29c7..e7cef9b5c3c 100644
--- a/llvm/lib/AsmParser/Parser.cpp
+++ b/llvm/lib/AsmParser/Parser.cpp
@@ -45,8 +45,7 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err,
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;
}
OpenPOWER on IntegriCloud