[llvm-commits] CVS: llvm/tools/gccld/Linker.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Oct 8 14:10:01 PDT 2003
Changes in directory llvm/tools/gccld:
Linker.cpp updated: 1.7 -> 1.8
---
Log message:
Make more error messages have gccld's name in them.
Add a newline after "Cannot find <library>".
---
Diffs of the changes: (+6 -4)
Index: llvm/tools/gccld/Linker.cpp
diff -u llvm/tools/gccld/Linker.cpp:1.7 llvm/tools/gccld/Linker.cpp:1.8
--- llvm/tools/gccld/Linker.cpp:1.7 Tue Sep 30 13:09:32 2003
+++ llvm/tools/gccld/Linker.cpp Wed Oct 8 14:09:30 2003
@@ -354,13 +354,15 @@
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 @@
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 @@
// 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;
}
}
More information about the llvm-commits
mailing list