YEs, we really do want to sort.

llvm-svn: 2810
This commit is contained in:
Chris Lattner 2002-06-30 16:20:02 +00:00
parent 5e960b5301
commit a5eae315e5

View File

@ -66,7 +66,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) {
if (Verbose) {
cerr << "Error opening bytecode file: '" << Filename << "'";
if (ErrorMessage.size()) cerr << ": " << ErrorMessage;
cerr << std::endl;
cerr << "\n";
}
if (NextLibPathIdx == LibPaths.size()) break;
@ -93,7 +93,7 @@ int main(int argc, char **argv) {
if (!Libraries.empty()) {
// Sort libraries list...
//sort(Libraries.begin(), Libraries.end());
std::sort(Libraries.begin(), Libraries.end());
// Remove duplicate libraries entries...
Libraries.erase(unique(Libraries.begin(), Libraries.end()),