From 582554555376cd60507c77cadb45edb88acfe7ed 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110179 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/Parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/AsmParser/Parser.cpp') diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index e511cbe29c..e7cef9b5c3 100644 --- a/lib/AsmParser/Parser.cpp +++ b/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-18-g5258