Lines Matching full:archive
1 //===-- llvm-ranlib.cpp - LLVM archive index generator --------------------===//
10 // Adds or updates an index (symbol table) for an LLVM archive file.
16 #include "llvm/Bitcode/Archive.h"
29 ArchiveName(cl::Positional, cl::Optional, cl::desc("<archive-file>"));
35 // printSymbolTable - print out the archive's symbol table.
36 void printSymbolTable(Archive* TheArchive) {
38 const Archive::SymTabType& symtab = TheArchive->getSymbolTable();
39 for (Archive::SymTabType::const_iterator I=symtab.begin(), E=symtab.end();
57 "LLVM Archive Index Generator (llvm-ranlib)\n\n"
59 " to an LLVM archive file."
67 // Check the path name of the archive
70 throw std::string("Archive name invalid: ") + ArchiveName;
75 throw std::string("Archive file does not exist");
78 std::auto_ptr<Archive>
79 AutoArchive(Archive::OpenAndLoad(ArchivePath, Context, &err_msg));
80 Archive* TheArchive = AutoArchive.get();