mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Object: constize Archive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -156,14 +156,14 @@ Archive::Archive(MemoryBuffer *source, error_code &ec)
|
||||
ec = object_error::success;
|
||||
}
|
||||
|
||||
Archive::child_iterator Archive::begin_children() {
|
||||
Archive::child_iterator Archive::begin_children() const {
|
||||
const char *Loc = Data->getBufferStart() + Magic.size();
|
||||
size_t Size = sizeof(ArchiveMemberHeader) +
|
||||
ToHeader(Loc)->getSize();
|
||||
return Child(this, StringRef(Loc, Size));
|
||||
}
|
||||
|
||||
Archive::child_iterator Archive::end_children() {
|
||||
Archive::child_iterator Archive::end_children() const {
|
||||
return Child(this, StringRef(0, 0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user