mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
Don't print the filename twice in file-not-found errors.
llvm-svn: 110179
This commit is contained in:
parent
efd0309322
commit
ab805c5aae
@ -60,8 +60,7 @@ namespace llvm {
|
||||
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
|
||||
if (F == 0) {
|
||||
Err = SMDiagnostic(Filename,
|
||||
"Could not open input file "
|
||||
"'" + Filename + "': " + ErrMsg);
|
||||
"Could not open input file: " + ErrMsg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -99,8 +98,7 @@ namespace llvm {
|
||||
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrMsg);
|
||||
if (F == 0) {
|
||||
Err = SMDiagnostic(Filename,
|
||||
"Could not open input file "
|
||||
"'" + Filename + "': " + ErrMsg);
|
||||
"Could not open input file: " + ErrMsg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user