diff options
author | Rui Ueyama <ruiu@google.com> | 2013-12-10 05:15:38 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-12-10 05:15:38 +0000 |
commit | 2f47acfd6a3a17c7d0d0c5b5007bdac5a55e31e8 (patch) | |
tree | 5e3aa554bf87ef65941351d807f810d2e3d93d50 /lld/lib/Core/InputGraph.cpp | |
parent | 7f10a8cd4512b3a18411cfd95e1d847dc8cbc825 (diff) | |
download | bcm5719-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.cpp | 6 |
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)); |