Object/Archive: Cleanup anon namespace.

llvm-svn: 142983
This commit is contained in:
Michael J. Spencer 2011-10-25 22:31:11 +00:00
parent 8ab7b036f7
commit 6e080ddb31
1 changed files with 5 additions and 8 deletions

View File

@ -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