mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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:
@@ -60,8 +60,7 @@ namespace llvm {
|
|||||||
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
|
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
|
||||||
if (F == 0) {
|
if (F == 0) {
|
||||||
Err = SMDiagnostic(Filename,
|
Err = SMDiagnostic(Filename,
|
||||||
"Could not open input file "
|
"Could not open input file: " + ErrMsg);
|
||||||
"'" + Filename + "': " + ErrMsg);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,8 +98,7 @@ namespace llvm {
|
|||||||
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
|
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
|
||||||
if (F == 0) {
|
if (F == 0) {
|
||||||
Err = SMDiagnostic(Filename,
|
Err = SMDiagnostic(Filename,
|
||||||
"Could not open input file "
|
"Could not open input file: " + ErrMsg);
|
||||||
"'" + Filename + "': " + ErrMsg);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,7 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err,
|
|||||||
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr);
|
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr);
|
||||||
if (F == 0) {
|
if (F == 0) {
|
||||||
Err = SMDiagnostic(Filename,
|
Err = SMDiagnostic(Filename,
|
||||||
"Could not open input file '" + Filename + "': " +
|
"Could not open input file: " + ErrorStr);
|
||||||
ErrorStr);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user