reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ExecutionEngine/ExecutionEngine.h
   58 class Archive;
include/llvm/Object/Archive.h
   35 class Archive;

References

include/llvm/ExecutionEngine/ExecutionEngine.h
  196   virtual void addArchive(object::OwningBinary<object::Archive> A);
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
  310   object::Archive Archive;
include/llvm/Object/Archive.h
   41   ArchiveMemberHeader(Archive const *Parent, const char *RawHeaderPtr,
   79   Archive const *Parent;
   91     const Archive *Parent;
  101     Child(const Archive *Parent, const char *Start, Error *Err);
  102     Child(const Archive *Parent, StringRef Data, uint16_t StartOfFile);
  109     const Archive *getParent() const { return Parent; }
  179     const Archive *Parent;
  184     Symbol(const Archive *p, uint32_t symi, uint32_t stri)
  222   static Expected<std::unique_ptr<Archive>> create(MemoryBufferRef Source);
include/llvm/Object/ArchiveWriter.h
   33   getOldMember(const object::Archive::Child &OldMember, bool Deterministic);
   42                    bool WriteSymtab, object::Archive::Kind Kind,
include/llvm/Object/Binary.h
  184   std::unique_ptr<T> Bin;
  189   OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
  190   OwningBinary(OwningBinary<T>&& Other);
  191   OwningBinary<T> &operator=(OwningBinary<T> &&Other);
  191   OwningBinary<T> &operator=(OwningBinary<T> &&Other);
  193   std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>> takeBinary();
  195   T* getBinary();
  196   const T* getBinary() const;
include/llvm/Object/MachOUniversal.h
  116     Expected<std::unique_ptr<Archive>> getAsArchive() const;
  168   Expected<std::unique_ptr<Archive>>
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
lib/ExecutionEngine/ExecutionEngine.cpp
  139 void ExecutionEngine::addArchive(object::OwningBinary<object::Archive> A) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp
  134 void MCJIT::addArchive(object::OwningBinary<object::Archive> A) {
  341   for (object::OwningBinary<object::Archive> &OB : Archives) {
  342     object::Archive *A = OB.getBinary();
lib/ExecutionEngine/MCJIT/MCJIT.h
  188   SmallVector<object::OwningBinary<object::Archive>, 2> Archives;
  218   void addArchive(object::OwningBinary<object::Archive> O) override;
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
  310   void addArchive(object::OwningBinary<object::Archive> A) override {
  392     for (object::OwningBinary<object::Archive> &OB : Archives) {
  393       object::Archive *A = OB.getBinary();
  494   std::vector<object::OwningBinary<object::Archive>> Archives;
lib/Object/Archive.cpp
   53 ArchiveMemberHeader::ArchiveMemberHeader(const Archive *Parent,
  103   if (Kind == Archive::K_BSD || Kind == Archive::K_DARWIN64) {
  103   if (Kind == Archive::K_BSD || Kind == Archive::K_DARWIN64) {
  179     if (Parent->kind() == Archive::K_GNU ||
  180         Parent->kind() == Archive::K_GNU64) {
  321 Archive::Child::Child(const Archive *Parent, StringRef Data,
  327 Archive::Child::Child(const Archive *Parent, const char *Start, Error *Err)
  456 Expected<Archive::Child> Archive::Child::getNext() const {
  530 Expected<std::unique_ptr<Archive>> Archive::create(MemoryBufferRef Source) {
  532   std::unique_ptr<Archive> Ret(new Archive(Source, Err));
  532   std::unique_ptr<Archive> Ret(new Archive(Source, Err));
  775 Archive::child_iterator Archive::child_begin(Error &Err,
  791 Archive::child_iterator Archive::child_end() const {
  799 Expected<Archive::Child> Archive::Symbol::getMember() const {
  859 Archive::Symbol Archive::Symbol::getNext() const {
  898 Archive::symbol_iterator Archive::symbol_begin() const {
  954 Archive::symbol_iterator Archive::symbol_end() const {
  976 Expected<Optional<Archive::Child>> Archive::findSym(StringRef name) const {
  977   Archive::symbol_iterator bs = symbol_begin();
  978   Archive::symbol_iterator es = symbol_end();
lib/Object/ArchiveWriter.cpp
   46 NewArchiveMember::getOldMember(const object::Archive::Child &OldMember,
  124 static bool isDarwin(object::Archive::Kind Kind) {
  125   return Kind == object::Archive::K_DARWIN ||
  126          Kind == object::Archive::K_DARWIN64;
  129 static bool isBSDLike(object::Archive::Kind Kind) {
  131   case object::Archive::K_GNU:
  132   case object::Archive::K_GNU64:
  134   case object::Archive::K_BSD:
  135   case object::Archive::K_DARWIN:
  136   case object::Archive::K_DARWIN64:
  138   case object::Archive::K_COFF:
  145 static void print(raw_ostream &Out, object::Archive::Kind Kind, T Val) {
  194 static bool is64BitKind(object::Archive::Kind Kind) {
  196   case object::Archive::K_GNU:
  197   case object::Archive::K_BSD:
  198   case object::Archive::K_DARWIN:
  199   case object::Archive::K_COFF:
  201   case object::Archive::K_DARWIN64:
  202   case object::Archive::K_GNU64:
  210                   StringMap<uint64_t> &MemberNames, object::Archive::Kind Kind,
  276 static void printNBits(raw_ostream &Out, object::Archive::Kind Kind,
  284 static void writeSymbolTable(raw_ostream &Out, object::Archive::Kind Kind,
  390                   object::Archive::Kind Kind, bool Thin, bool Deterministic,
  481     if (Size > object::Archive::MaxMemberSize) {
  552                    bool WriteSymtab, object::Archive::Kind Kind,
  600       if (Kind == object::Archive::K_DARWIN)
  601         Kind = object::Archive::K_DARWIN64;
  603         Kind = object::Archive::K_GNU64;
lib/Object/Binary.cpp
   52     return Archive::create(Buffer);
lib/Object/COFFImportFile.cpp
  620                       object::Archive::K_GNU,
lib/Object/MachOUniversal.cpp
   83 Expected<std::unique_ptr<Archive>>
   97   return Archive::create(ObjBuffer);
  237 Expected<std::unique_ptr<Archive>>
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  774   if (auto *Ar = dyn_cast<Archive>(Bin.get())) {
  774   if (auto *Ar = dyn_cast<Archive>(Bin.get())) {
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  133   object::Archive Archive(B.get()->getMemBufferRef(), Err);
  209     object::Archive Archive(MB, Err);
  370                        /*WriteSymtab=*/true, object::Archive::K_GNU,
tools/dsymutil/BinaryHolder.cpp
   77     auto ErrOrArchive = object::Archive::create(MemRef);
tools/dsymutil/BinaryHolder.h
  115     std::vector<std::unique_ptr<object::Archive>> Archives;
tools/lld/COFF/Driver.cpp
  184       std::unique_ptr<Archive> file =
  186       Archive *archive = file.get();
  187       make<std::unique_ptr<Archive>>(std::move(file)); // take ownership
  278 void LinkerDriver::enqueueArchiveMember(const Archive::Child &c,
  279                                         const Archive::Symbol &sym,
tools/lld/COFF/Driver.h
   75   void enqueueArchiveMember(const Archive::Child &c, const Archive::Symbol &sym,
   75   void enqueueArchiveMember(const Archive::Child &c, const Archive::Symbol &sym,
tools/lld/COFF/InputFiles.cpp
  105   for (const Archive::Symbol &sym : file->symbols())
  110 void ArchiveFile::addMember(const Archive::Symbol &sym) {
  111   const Archive::Child &c =
  122 std::vector<MemoryBufferRef> getArchiveMembers(Archive *file) {
  125   for (const ErrorOr<Archive::Child> &cOrErr : file->children(err)) {
  126     Archive::Child c =
tools/lld/COFF/InputFiles.h
   38 std::vector<MemoryBufferRef> getArchiveMembers(llvm::object::Archive *file);
  107   void addMember(const Archive::Symbol &sym);
  110   std::unique_ptr<Archive> file;
tools/lld/COFF/SymbolTable.cpp
  490 void SymbolTable::addLazyArchive(ArchiveFile *f, const Archive::Symbol &sym) {
tools/lld/COFF/SymbolTable.h
   89   void addLazyArchive(ArchiveFile *f, const Archive::Symbol &sym);
tools/lld/COFF/Symbols.cpp
   49 std::string toCOFFString(const Archive::Symbol &b) {
  138   Archive::Child c =
tools/lld/COFF/Symbols.h
   30 std::string toCOFFString(const coff::Archive::Symbol &b);
  268   LazyArchive(ArchiveFile *f, const Archive::Symbol s)
  276   const Archive::Symbol sym;
tools/lld/ELF/Driver.cpp
  158   std::unique_ptr<Archive> file =
  165   for (const ErrorOr<Archive::Child> &cOrErr : file->children(err)) {
  166     Archive::Child c =
  214     std::unique_ptr<Archive> file =
tools/lld/ELF/InputFiles.cpp
 1071 ArchiveFile::ArchiveFile(std::unique_ptr<Archive> &&file)
 1076   for (const Archive::Symbol &sym : file->symbols())
 1081 void ArchiveFile::fetch(const Archive::Symbol &sym) {
 1082   Archive::Child c =
tools/lld/ELF/InputFiles.h
  315   explicit ArchiveFile(std::unique_ptr<Archive> &&file);
  323   void fetch(const Archive::Symbol &sym);
  326   std::unique_ptr<Archive> file;
tools/lld/ELF/Symbols.cpp
   35 std::string toELFString(const Archive::Symbol &b) {
  264   Archive::Child c =
tools/lld/ELF/Symbols.h
   29 std::string toELFString(const llvm::object::Archive::Symbol &);
  400   LazyArchive(InputFile &file, const llvm::object::Archive::Symbol s)
  409   const llvm::object::Archive::Symbol sym;
tools/lld/lib/ReaderWriter/FileArchive.cpp
   54     Archive::Child c = member->second;
  128     _archive.reset(new Archive(_mb->getMemBufferRef(), Err));
  138   std::error_code instantiateMember(Archive::Child member,
  172     for (const Archive::Symbol &sym : _archive->symbols()) {
  174       Expected<Archive::Child> memberOrErr = sym.getMember();
  177       Archive::Child member = memberOrErr.get();
  188   typedef std::unordered_map<StringRef, Archive::Child> MemberMap;
  193   std::unique_ptr<Archive> _archive;
tools/lld/wasm/Driver.cpp
  191   std::unique_ptr<Archive> file =
  197   for (const ErrorOr<Archive::Child> &cOrErr : file->children(err)) {
  198     Archive::Child c =
  238     std::unique_ptr<Archive> file =
tools/lld/wasm/InputFiles.cpp
  476   for (const Archive::Symbol &sym : file->symbols()) {
  483 void ArchiveFile::addMember(const Archive::Symbol *sym) {
  484   const Archive::Child &c =
tools/lld/wasm/InputFiles.h
   80   void addMember(const llvm::object::Archive::Symbol *sym);
   85   std::unique_ptr<llvm::object::Archive> file;
tools/lld/wasm/SymbolTable.cpp
  519 void SymbolTable::addLazy(ArchiveFile *file, const Archive::Symbol *sym) {
tools/lld/wasm/SymbolTable.h
   71   void addLazy(ArchiveFile *f, const llvm::object::Archive::Symbol *sym);
tools/lld/wasm/Symbols.h
  408              const llvm::object::Archive::Symbol &sym)
  422   llvm::object::Archive::Symbol archiveSymbol;
tools/lli/lli.cpp
  500     Expected<std::unique_ptr<object::Archive>> ArOrErr =
  501         object::Archive::create(ArBuf->getMemBufferRef());
  510     std::unique_ptr<object::Archive> &Ar = ArOrErr.get();
  512     object::OwningBinary<object::Archive> OB(std::move(Ar), std::move(ArBuf));
tools/llvm-ar/llvm-ar.cpp
  220 static std::vector<std::unique_ptr<object::Archive>> Archives;
  259 static object::Archive &readLibrary(const Twine &Library) {
  264       object::Archive::create(ArchiveBuffers.back()->getMemBufferRef());
  439 static void doPrint(StringRef Name, const object::Archive::Child &C) {
  461 static void doDisplayTable(StringRef Name, const object::Archive::Child &C) {
  527 static void doExtract(StringRef Name, const object::Archive::Child &C) {
  583                                  object::Archive *OldArchive) {
  632                            const object::Archive::Child &M,
  660     object::Archive &Lib = readLibrary(*FileNameOrErr);
  698     object::Archive &Lib = readLibrary(FileName);
  721                                         const object::Archive::Child &Member,
  774                          object::Archive *OldArchive) {
  857 static object::Archive::Kind getDefaultForHost() {
  859              ? object::Archive::K_DARWIN
  860              : object::Archive::K_GNU;
  863 static object::Archive::Kind getKindFromMember(const NewArchiveMember &Member) {
  869                ? object::Archive::K_DARWIN
  870                : object::Archive::K_GNU;
  878                                   object::Archive *OldArchive,
  885   object::Archive::Kind Kind;
  889       Kind = object::Archive::K_GNU;
  900     Kind = object::Archive::K_GNU;
  905     Kind = object::Archive::K_BSD;
  910     Kind = object::Archive::K_DARWIN;
  922 static void createSymbolTable(object::Archive *OldArchive) {
  936                              object::Archive *OldArchive,
  971     object::Archive Archive(Buf.get()->getMemBufferRef(), Err);
 1030       object::Archive &Lib = readLibrary(Rest);
tools/llvm-cxxdump/llvm-cxxdump.cpp
  499 static void dumpArchive(const Archive *Arc) {
  535   if (Archive *Arc = dyn_cast<Archive>(&Binary))
  535   if (Archive *Arc = dyn_cast<Archive>(&Binary))
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  468 static bool handleArchive(StringRef Filename, Archive &Arch,
  517   else if (auto *Arch = dyn_cast<Archive>(BinOrErr->get()))
  517   else if (auto *Arch = dyn_cast<Archive>(BinOrErr->get()))
tools/llvm-lipo/llvm-lipo.cpp
  175   explicit Slice(const Archive *A) : B(A) {
  178     for (const Archive::Child &Child : A->children(Err)) {
  443                                   : Slice(cast<Archive>(B));
  501       Expected<std::unique_ptr<Archive>> ArchiveOrError = O.getAsArchive();
  563   Expected<std::unique_ptr<Archive>> Ar = UO->getArchiveForArch(ThinArchType);
  642     } else if (auto A = dyn_cast<Archive>(InputBinary)) {
tools/llvm-nm/llvm-nm.cpp
  240 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C,
 1792   if (Archive *A = dyn_cast<Archive>(&Bin)) {
 1792   if (Archive *A = dyn_cast<Archive>(&Bin)) {
 1794       Archive::symbol_iterator I = A->symbol_begin();
 1795       Archive::symbol_iterator E = A->symbol_end();
 1799           Expected<Archive::Child> C = I->getMember();
 1885             } else if (Expected<std::unique_ptr<Archive>> AOrErr =
 1887               std::unique_ptr<Archive> &A = *AOrErr;
 1956           } else if (Expected<std::unique_ptr<Archive>> AOrErr =
 1958             std::unique_ptr<Archive> &A = *AOrErr;
 2021       } else if (Expected<std::unique_ptr<Archive>> AOrErr =
 2023         std::unique_ptr<Archive> &A = *AOrErr;
tools/llvm-objcopy/llvm-objcopy.cpp
  104                               bool WriteSymtab, object::Archive::Kind Kind,
  180 static Error executeObjcopyOnArchive(CopyConfig &Config, const Archive &Ar) {
  183   for (const Archive::Child &Child : Ar.children(Err)) {
  291     if (Archive *Ar = dyn_cast<Archive>(BinaryOrErr.get().getBinary())) {
  291     if (Archive *Ar = dyn_cast<Archive>(BinaryOrErr.get().getBinary())) {
tools/llvm-objdump/MachODump.cpp
 2216 static void printArchiveChild(StringRef Filename, const Archive::Child &C,
 2287 static void printArchiveHeaders(StringRef Filename, Archive *A, bool verbose,
 2336   if (Archive *A = dyn_cast<Archive>(&Bin)) {
 2336   if (Archive *A = dyn_cast<Archive>(&Bin)) {
 2412           } else if (Expected<std::unique_ptr<Archive>> AOrErr =
 2414             std::unique_ptr<Archive> &A = *AOrErr;
 2476         } else if (Expected<std::unique_ptr<Archive>> AOrErr =
 2478           std::unique_ptr<Archive> &A = *AOrErr;
 2527     } else if (Expected<std::unique_ptr<Archive>> AOrErr = I->getAsArchive()) {
 2528       std::unique_ptr<Archive> &A = *AOrErr;
tools/llvm-objdump/llvm-objdump.cpp
  396 std::string getFileNameForError(const object::Archive::Child &C,
 2043 static void printArchiveChild(StringRef Filename, const Archive::Child &C) {
 2128 static void dumpObject(ObjectFile *O, const Archive *A = nullptr,
 2129                        const Archive::Child *C = nullptr) {
 2192 static void dumpObject(const COFFImportFile *I, const Archive *A,
 2193                        const Archive::Child *C = nullptr) {
 2210 static void dumpArchive(const Archive *A) {
 2247   if (Archive *A = dyn_cast<Archive>(&Binary))
 2247   if (Archive *A = dyn_cast<Archive>(&Binary))
tools/llvm-objdump/llvm-objdump.h
  155 std::string getFileNameForError(const object::Archive::Child &C,
tools/llvm-readobj/llvm-readobj.cpp
  439                        const Archive *A = nullptr) {
  552 static void dumpArchive(const Archive *Arc, ScopedPrinter &Writer) {
  582     else if (Expected<std::unique_ptr<Archive>> AOrErr = Obj.getAsArchive())
  604   if (Archive *Arc = dyn_cast<Archive>(&Binary))
  604   if (Archive *Arc = dyn_cast<Archive>(&Binary))
tools/llvm-size/llvm-size.cpp
  118 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C,
  549   if (Archive *a = dyn_cast<Archive>(&Bin)) {
  549   if (Archive *a = dyn_cast<Archive>(&Bin)) {
  615             } else if (Expected<std::unique_ptr<Archive>> AOrErr =
  617               std::unique_ptr<Archive> &UA = *AOrErr;
  704           } else if (Expected<std::unique_ptr<Archive>> AOrErr =
  706             std::unique_ptr<Archive> &UA = *AOrErr;
  781       } else if (Expected<std::unique_ptr<Archive>> AOrErr =
  783         std::unique_ptr<Archive> &UA = *AOrErr;
tools/sancov/sancov.cpp
  777 visitObjectFiles(const object::Archive &A,
  800   if (object::Archive *A = dyn_cast<object::Archive>(&Binary))
  800   if (object::Archive *A = dyn_cast<object::Archive>(&Binary))
usr/include/c++/7.4.0/bits/unique_ptr.h
   68         default_delete(const default_delete<_Up>&) noexcept { }
   72       operator()(_Tp* __ptr) const
   74 	static_assert(!is_void<_Tp>::value,
   76 	static_assert(sizeof(_Tp)>0,
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  297           __safe_conversion_up<_Up, _Ep>,
  301 	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>