Lines Matching full:archive
1 //===-- ArchiveWriter.cpp - Write LLVM archive files ----------------------===//
10 // Builds up an LLVM archive file (.a) containing LLVM bitcode.
68 // Create an empty archive.
69 Archive* Archive::CreateEmpty(const sys::Path& FilePath, LLVMContext& C) {
70 Archive* result = new Archive(FilePath, C);
81 Archive::fillHeader(const ArchiveMember &mbr, ArchiveMemberHeader& hdr,
155 // Insert a file into the archive before some other member. This also takes care
158 Archive::addFileBefore(const sys::Path& filePath, iterator where,
163 *ErrMsg = "Can not add a non-existent file to archive";
202 Archive::writeMember(
271 // Write header to archive file
292 // Write out the LLVM symbol table as an archive member to the file.
294 Archive::writeSymbolTable(std::ofstream& ARFile) {
322 for ( Archive::SymTabType::iterator I = symTab.begin(), E = symTab.end();
347 // Write the entire archive to the file specified when the archive was created.
350 // compressing each archive member.
352 Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress,
359 *ErrMsg = "Can't write an archive not opened for writing";
363 // Create a temporary file to store the archive in
371 // Create archive file for output.
376 // Check for errors opening or creating archive file.
380 *ErrMsg = "Error opening archive file: " + archPath.str();
390 // Write magic string to archive.
404 // Close archive file.
409 // At this point we have written a file that is a legal archive but it
416 // Map in the archive we just wrote.
436 *ErrMsg = "Error opening archive file: " + FinalFilePath.str();
447 // archive to store both native .o and LLVM .bc files, both indexed.
473 // Before we replace the actual archive, we need to forget all the
474 // members, since they point to data in that old archive. We need to do