diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-22 13:42:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-22 13:42:11 +0000 |
commit | e1a4427ccb6e29e63c11e63224460a92ee66de37 (patch) | |
tree | 2743842d48d85355e6d20eb3ed339b465d4f70fa | |
parent | fdf0dc9e0bb5c0b848286e6c96bfc9a390d26775 (diff) | |
download | external_llvm-e1a4427ccb6e29e63c11e63224460a92ee66de37.zip external_llvm-e1a4427ccb6e29e63c11e63224460a92ee66de37.tar.gz external_llvm-e1a4427ccb6e29e63c11e63224460a92ee66de37.tar.bz2 |
Remove static ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151160 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Object/Archive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index ad1cde0..b67377c 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -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)); |