diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-20 05:06:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-20 05:06:23 +0000 |
commit | f74e28abfaeb544270a7b2b76528efe0d38a3157 (patch) | |
tree | ae082f5ba080484d7df7dd0735d488b959befc6c /llvm/lib/Support/CommandLine.cpp | |
parent | e7c1e210c79f42c826ae65a18452999e1ee4dd7c (diff) | |
download | bcm5719-llvm-f74e28abfaeb544270a7b2b76528efe0d38a3157.tar.gz bcm5719-llvm-f74e28abfaeb544270a7b2b76528efe0d38a3157.zip |
change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.
llvm-svn: 82363
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index fbd58aad952..2e69b11d2bd 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -27,6 +27,7 @@ #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/SmallString.h" +#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/Twine.h" #include "llvm/Config/config.h" #include <set> @@ -1150,7 +1151,7 @@ public: Targets.push_back(std::make_pair(it->getName(), &*it)); Width = std::max(Width, Targets.back().first.length()); } - std::sort(Targets.begin(), Targets.end()); + array_pod_sort(Targets.begin(), Targets.end()); for (unsigned i = 0, e = Targets.size(); i != e; ++i) { outs() << " " << Targets[i].first; |