From fe944e8cd03701b699c07590b4ec5203928b2b11 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 25 Oct 2011 22:31:11 +0000 Subject: [PATCH] Object/Archive: Cleanup anon namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142983 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/Archive.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index 348b7536e80..f1c4b2d7961 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -18,9 +18,9 @@ using namespace llvm; using namespace object; -namespace { -const StringRef Magic = "!\n"; +static const StringRef Magic = "!\n"; +namespace { struct ArchiveMemberHeader { char Name[16]; char LastModified[12]; @@ -51,11 +51,12 @@ struct ArchiveMemberHeader { return ret.getZExtValue(); } }; +} -const ArchiveMemberHeader *ToHeader(const char *base) { +static const ArchiveMemberHeader *ToHeader(const char *base) { return reinterpret_cast(base); } -} + static bool isInternalMember(const ArchiveMemberHeader &amh) { const char *internals[] = { @@ -207,7 +208,3 @@ Archive::child_iterator Archive::begin_children(bool skip_internal) const { Archive::child_iterator Archive::end_children() const { return Child(this, StringRef(0, 0)); } - -namespace llvm { - -} // end namespace llvm