aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-20 05:06:23 +0000
committerChris Lattner <sabre@nondot.org>2009-09-20 05:06:23 +0000
commit14aae60b69e069c9a8ac805a9e46e215757b2efc (patch)
treef4d27d3cd7300e4e9b7c9cb51746cb01a3f02478 /lib/Support/CommandLine.cpp
parentb168737a7479bc5c1cfdf62f8cc0f9ad652c2676 (diff)
change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r--lib/Support/CommandLine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index fbd58aad95..2e69b11d2b 100644
--- a/lib/Support/CommandLine.cpp
+++ b/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;