mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
Remove static ctor.
llvm-svn: 151160
This commit is contained in:
parent
c5b687b241
commit
4d0ae7cfef
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user