aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Object
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-25 22:31:11 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-25 22:31:11 +0000
commitfe944e8cd03701b699c07590b4ec5203928b2b11 (patch)
tree68ad70a083629ec4f25fa9196dccd89c70cbc7e5 /lib/Object
parent93fe4ae091112769601a203bfcc288f52f778fef (diff)
downloadexternal_llvm-fe944e8cd03701b699c07590b4ec5203928b2b11.zip
external_llvm-fe944e8cd03701b699c07590b4ec5203928b2b11.tar.gz
external_llvm-fe944e8cd03701b699c07590b4ec5203928b2b11.tar.bz2
Object/Archive: Cleanup anon namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/Archive.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp
index 348b753..f1c4b2d 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 = "!<arch>\n";
+static const StringRef Magic = "!<arch>\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<const ArchiveMemberHeader *>(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