aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit582554555376cd60507c77cadb45edb88acfe7ed (patch)
tree0df2f68de715105aabf2bfc042c837012f7eacb6 /lib/AsmParser/Parser.cpp
parent12cf5018be3dc450c666620f0c481ca363efa776 (diff)
downloadexternal_llvm-582554555376cd60507c77cadb45edb88acfe7ed.zip
external_llvm-582554555376cd60507c77cadb45edb88acfe7ed.tar.gz
external_llvm-582554555376cd60507c77cadb45edb88acfe7ed.tar.bz2
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 'lib/AsmParser/Parser.cpp')
-rw-r--r--lib/AsmParser/Parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index e511cbe..e7cef9b 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;
}