From 2f47acfd6a3a17c7d0d0c5b5007bdac5a55e31e8 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 10 Dec 2013 05:15:38 +0000 Subject: Make anonymous namespace as small as possible. Use of static is recommended by the style guide. llvm-svn: 196877 --- lld/lib/Core/InputGraph.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lld/lib/Core/InputGraph.cpp') 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 &a, - const std::unique_ptr &b) { +static bool sortInputElements(const std::unique_ptr &a, + const std::unique_ptr &b) { return a->getOrdinal() < b->getOrdinal(); } -} bool InputGraph::addInputElement(std::unique_ptr ie) { _inputArgs.push_back(std::move(ie)); -- cgit v1.2.3