mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Remove static ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdf0dc9e0b
commit
e1a4427ccb
@ -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…
x
Reference in New Issue
Block a user