Remove static ctor.

llvm-svn: 151160
This commit is contained in:
Benjamin Kramer 2012-02-22 13:42:11 +00:00
parent c5b687b241
commit 4d0ae7cfef

View File

@ -19,7 +19,7 @@
using namespace llvm;
using namespace object;
static const StringRef Magic = "!<arch>\n";
static const char *Magic = "!<arch>\n";
namespace {
struct ArchiveMemberHeader {
@ -200,7 +200,7 @@ Archive::Archive(MemoryBuffer *source, error_code &ec)
}
Archive::child_iterator Archive::begin_children(bool skip_internal) const {
const char *Loc = Data->getBufferStart() + Magic.size();
const char *Loc = Data->getBufferStart() + strlen(Magic);
size_t Size = sizeof(ArchiveMemberHeader) +
ToHeader(Loc)->getSize();
Child c(this, StringRef(Loc, Size));