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
This commit is contained in:
Dan Gohman
2010-08-04 01:13:48 +00:00
parent 12cf5018be
commit 5825545553
2 changed files with 3 additions and 6 deletions

View File

@ -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;
}