From 47053d972b979d9b8f10faeb20c7e67349e9ecba Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 4 Aug 2010 01:13:48 +0000 Subject: Don't print the filename twice in file-not-found errors. llvm-svn: 110179 --- llvm/lib/AsmParser/Parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/AsmParser/Parser.cpp') 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; } -- cgit v1.2.3