summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/InputGraph.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-12-10 05:15:38 +0000
committerRui Ueyama <ruiu@google.com>2013-12-10 05:15:38 +0000
commit2f47acfd6a3a17c7d0d0c5b5007bdac5a55e31e8 (patch)
tree5e3aa554bf87ef65941351d807f810d2e3d93d50 /lld/lib/Core/InputGraph.cpp
parent7f10a8cd4512b3a18411cfd95e1d847dc8cbc825 (diff)
downloadbcm5719-llvm-2f47acfd6a3a17c7d0d0c5b5007bdac5a55e31e8.tar.gz
bcm5719-llvm-2f47acfd6a3a17c7d0d0c5b5007bdac5a55e31e8.zip
Make anonymous namespace as small as possible.
Use of static is recommended by the style guide. llvm-svn: 196877
Diffstat (limited to 'lld/lib/Core/InputGraph.cpp')
-rw-r--r--lld/lib/Core/InputGraph.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/lib/Core/InputGraph.cpp b/lld/lib/Core/InputGraph.cpp
index ea95b620f3c..ddf1d7dc127 100644
--- a/lld/lib/Core/InputGraph.cpp
+++ b/lld/lib/Core/InputGraph.cpp
@@ -13,12 +13,10 @@
using namespace lld;
-namespace {
-bool sortInputElements(const std::unique_ptr<InputElement> &a,
- const std::unique_ptr<InputElement> &b) {
+static bool sortInputElements(const std::unique_ptr<InputElement> &a,
+ const std::unique_ptr<InputElement> &b) {
return a->getOrdinal() < b->getOrdinal();
}
-}
bool InputGraph::addInputElement(std::unique_ptr<InputElement> ie) {
_inputArgs.push_back(std::move(ie));
OpenPOWER on IntegriCloud