Lines Matching defs:Archive
1 //===- Archive.cpp - ar File Format implementation --------------*- C++ -*-===//
14 #include "llvm/Object/Archive.h"
39 void Archive::anchor() { }
41 error_code Archive::Child::getName(StringRef &Result) const {
93 error_code Archive::Child::getAsBinary(OwningPtr<Binary> &Result) const {
104 Archive::Archive(MemoryBuffer *source, error_code &ec)
108 < (8 + sizeof(ArchiveMemberHeader) + 2) // Smallest archive.
122 // Below is the pattern that is used to figure out the archive format
123 // GNU archive format
127 // BSD archive format
131 // of the filename that needs to be read after the archive header
132 // COFF archive format
171 Archive::child_iterator Archive::begin_children(bool skip_internal) const {
176 // Skip internals at the beginning of an archive.
182 Archive::child_iterator Archive::end_children() const {
186 error_code Archive::Symbol::getName(StringRef &Result) const {
191 error_code Archive::Symbol::getMember(child_iterator &Result) const {
238 Archive::Symbol Archive::Symbol::getNext() const {
247 Archive::symbol_iterator Archive::begin_symbols() const {
254 llvm_unreachable("BSD archive format is not supported");
267 Archive::symbol_iterator Archive::end_symbols() const {
274 llvm_unreachable("BSD archive format is not supported");
285 Archive::child_iterator Archive::findSym(StringRef name) const {
286 Archive::symbol_iterator bs = begin_symbols();
287 Archive::symbol_iterator es = end_symbols();
288 Archive::child_iterator result;