mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
Make more error messages have gccld's name in them.
Add a newline after "Cannot find <library>". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecfecfe114
commit
608e75c604
@ -354,13 +354,15 @@ bool LinkFiles(const char *progname,
|
||||
Pathname = Files[i];
|
||||
} else {
|
||||
if (SearchPath == NULL) {
|
||||
std::cerr << "Cannot find linker input file '" << Files[i] << "'";
|
||||
std::cerr << progname << ": Cannot find linker input file '"
|
||||
<< Files[i] << "'\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
Pathname = std::string(SearchPath)+"/"+Files[i];
|
||||
if (!FileExists(Pathname)) {
|
||||
std::cerr << "Cannot find linker input file '" << Files[i] << "'";
|
||||
std::cerr << progname << ": Cannot find linker input file '"
|
||||
<< Files[i] << "'\n";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -382,7 +384,7 @@ bool LinkFiles(const char *progname,
|
||||
|
||||
if (LinkInFile(HeadModule, Pathname, ErrorMessage, Verbose)) {
|
||||
PrintAndReturn(progname, ErrorMessage,
|
||||
": error linking in '" + Files[i] + "'");
|
||||
": Error linking in '" + Files[i] + "'");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -427,7 +429,7 @@ bool LinkLibraries(const char *progname,
|
||||
// we're doing a native link and give an error if we're doing a bytecode
|
||||
// link.
|
||||
if (!Native) {
|
||||
PrintAndReturn(progname, "Cannot find " + Libraries[i]);
|
||||
PrintAndReturn(progname, "Cannot find " + Libraries[i] + "\n");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -354,13 +354,15 @@ bool LinkFiles(const char *progname,
|
||||
Pathname = Files[i];
|
||||
} else {
|
||||
if (SearchPath == NULL) {
|
||||
std::cerr << "Cannot find linker input file '" << Files[i] << "'";
|
||||
std::cerr << progname << ": Cannot find linker input file '"
|
||||
<< Files[i] << "'\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
Pathname = std::string(SearchPath)+"/"+Files[i];
|
||||
if (!FileExists(Pathname)) {
|
||||
std::cerr << "Cannot find linker input file '" << Files[i] << "'";
|
||||
std::cerr << progname << ": Cannot find linker input file '"
|
||||
<< Files[i] << "'\n";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -382,7 +384,7 @@ bool LinkFiles(const char *progname,
|
||||
|
||||
if (LinkInFile(HeadModule, Pathname, ErrorMessage, Verbose)) {
|
||||
PrintAndReturn(progname, ErrorMessage,
|
||||
": error linking in '" + Files[i] + "'");
|
||||
": Error linking in '" + Files[i] + "'");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -427,7 +429,7 @@ bool LinkLibraries(const char *progname,
|
||||
// we're doing a native link and give an error if we're doing a bytecode
|
||||
// link.
|
||||
if (!Native) {
|
||||
PrintAndReturn(progname, "Cannot find " + Libraries[i]);
|
||||
PrintAndReturn(progname, "Cannot find " + Libraries[i] + "\n");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user