mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
1. Use better error messages in LinkFiles().
2. I think the caller of LinkFiles() should not ignore a true return value. (If you have a good reason why it ought to, feel free to revert this. It's just something that's been bugging me for a while.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -401,13 +401,13 @@ bool LinkFiles(const char *progname,
|
||||
Pathname = Files[i];
|
||||
} else {
|
||||
if (SearchPath == NULL) {
|
||||
std::cerr << "Cannot find " << Files[i];
|
||||
std::cerr << "Cannot find linker input file '" << Files[i] << "'";
|
||||
return true;
|
||||
}
|
||||
|
||||
Pathname = std::string(SearchPath)+"/"+Files[i];
|
||||
if (!FileExists(Pathname)) {
|
||||
std::cerr << "Cannot find " << Files[i];
|
||||
std::cerr << "Cannot find linker input file '" << Files[i] << "'";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user