[llvm-commits] [llvm] r142983 - /llvm/trunk/lib/Object/Archive.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Tue Oct 25 15:31:11 PDT 2011
Author: mspencer
Date: Tue Oct 25 17:31:11 2011
New Revision: 142983
URL: http://llvm.org/viewvc/llvm-project?rev=142983&view=rev
Log:
Object/Archive: Cleanup anon namespace.
Modified:
llvm/trunk/lib/Object/Archive.cpp
Modified: llvm/trunk/lib/Object/Archive.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Archive.cpp?rev=142983&r1=142982&r2=142983&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Archive.cpp (original)
+++ llvm/trunk/lib/Object/Archive.cpp Tue Oct 25 17:31:11 2011
@@ -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 @@
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::end_children() const {
return Child(this, StringRef(0, 0));
}
-
-namespace llvm {
-
-} // end namespace llvm
More information about the llvm-commits
mailing list