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/ReaderWriter/ELF/SectionChunks.h | |
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/ReaderWriter/ELF/SectionChunks.h')
-rw-r--r-- | lld/lib/ReaderWriter/ELF/SectionChunks.h | 5 |
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 { |