summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/SectionChunks.h
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/ReaderWriter/ELF/SectionChunks.h
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/ReaderWriter/ELF/SectionChunks.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/SectionChunks.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/SectionChunks.h b/lld/lib/ReaderWriter/ELF/SectionChunks.h
index 86c582cd2b2..2974658ce84 100644
--- a/lld/lib/ReaderWriter/ELF/SectionChunks.h
+++ b/lld/lib/ReaderWriter/ELF/SectionChunks.h
@@ -31,13 +31,12 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileOutputBuffer.h"
-namespace {
-LLVM_ATTRIBUTE_UNUSED std::string kindOrUnknown(llvm::ErrorOr<std::string> k) {
+static LLVM_ATTRIBUTE_UNUSED std::string
+kindOrUnknown(llvm::ErrorOr<std::string> k) {
if (k)
return *k;
return "<unknown>";
}
-}
namespace lld {
namespace elf {
OpenPOWER on IntegriCloud