From c19be16c7b8771f2f3a25916f7c93cb7ef6378e0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 30 Jun 2002 16:20:02 +0000 Subject: YEs, we really do want to sort. llvm-svn: 2810 --- llvm/tools/gccld/gccld.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/tools/gccld/gccld.cpp') diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp index 5793b10d9c1..919884419d4 100644 --- a/llvm/tools/gccld/gccld.cpp +++ b/llvm/tools/gccld/gccld.cpp @@ -66,7 +66,7 @@ static inline std::auto_ptr 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()), -- cgit v1.2.3