summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Archive
Commit message (Collapse)AuthorAgeFilesLines
* move this to lib/ArchiveChris Lattner2007-05-065-1486/+0
| | | | llvm-svn: 36888
* Switch this over to bitcode instead of bytecode.Chris Lattner2007-05-064-60/+40
| | | | llvm-svn: 36866
* add bitcode supportChris Lattner2007-05-062-50/+44
| | | | llvm-svn: 36856
* Avoid a useless temporary constrution.Reid Spencer2007-04-071-2/+1
| | | | llvm-svn: 35747
* Fix another PathWithStatus issue.Reid Spencer2007-04-071-1/+2
| | | | llvm-svn: 35744
* For PR1302:Reid Spencer2007-04-043-6/+6
| | | | | | Adjust useage of sys::Path::FileType for new enumerator names. llvm-svn: 35651
* For PR789:Reid Spencer2007-03-292-2/+8
| | | | | | | | Make the sys::Path::getFileStatus function more efficient by having it return a pointer to the FileStatus structure rather than copy it. Adjust uses of the function accordingly. Also, fix some memory issues in sys::Path. llvm-svn: 35476
* For PR789:Reid Spencer2007-03-292-2/+2
| | | | | | Updates for change in interface of getFileStatus method of sys::Path class. llvm-svn: 35458
* move archive-specific stuff out of bcreader into archive library.Chris Lattner2007-02-072-3/+80
| | | | llvm-svn: 34022
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-073-12/+17
| | | | | | | | | | | | | | | | | | | | api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. llvm-svn: 34012
* For PR1050:Reid Spencer2006-12-153-6/+27
| | | | | | Convert asserts into error messages. llvm-svn: 32607
* Use ostream instead of iostreamBill Wendling2006-11-281-2/+1
| | | | llvm-svn: 31986
* For PR797:Reid Spencer2006-08-251-1/+0
| | | | | | | | | | | | | | | Final commit for this bug. This removes the last EH holdouts in LLVM and turns off exception support by using the -fno-exceptions option. This leads to the following reduction in library and executable sizes: DEBUG BUILD RELEASE BUILD before after delta before after delta lib 162,328K 157,616K 4,712 17,864K 16,416K 1,448K bin 571,444K 557,156K 14,288 63,296K 56,996K 6,300K Debug Improvement: 19,000K (2.59%) Release Improvement: 7,748K (9.55%) llvm-svn: 29882
* For PR797:Reid Spencer2006-08-252-6/+9
| | | | | | | Remove exception throwing/handling from lib/Bytecode, and adjust its users to compensate for changes in the interface. llvm-svn: 29875
* For PR797:Reid Spencer2006-08-243-57/+65
| | | | | | | Remove exception handling from the bytecode archiver and adjust the llvm-ar tool to accommodate the new interfaces. llvm-svn: 29866
* For PR797:Reid Spencer2006-08-231-2/+4
| | | | | | | Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. llvm-svn: 29843
* For PR797:Reid Spencer2006-08-231-2/+4
| | | | | | | Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. llvm-svn: 29840
* Inverse the error check logic for the MappedFile::map() call. It returnsReid Spencer2006-08-221-1/+1
| | | | | | a null pointer when there is an error. llvm-svn: 29827
* For PR797:Reid Spencer2006-08-222-6/+19
| | | | | | | Adjust to new interface for MappedFile. Note that the new "throw" statements will be removed later. llvm-svn: 29818
* Modify Path::eraseFromDisk to not throw an exception.Chris Lattner2006-07-281-6/+5
| | | | llvm-svn: 29400
* Change Path::getStatusInfo to return a boolean and error string on an errorChris Lattner2006-07-282-3/+7
| | | | | | | | instead of throwing an exception. This reduces the amount of code that is exposed to exceptions (e.g. FileUtilities), though it is clearly only one step along the way. llvm-svn: 29395
* Exceptions are thrown by and through this library.Chris Lattner2006-07-281-0/+1
| | | | llvm-svn: 29393
* Finish removal of EH usage from the Archive library. The REQUIRES_EH flagReid Spencer2006-07-073-70/+137
| | | | | | | in lib/Bytecode/Archive/Makefile is now removed. One small step closer to a smaller LLVM. llvm-svn: 29067
* Remove EH use from the Archive library and adjust its users accordingly.Reid Spencer2006-07-071-98/+109
| | | | llvm-svn: 29066
* These libs use EH infoChris Lattner2006-07-071-1/+2
| | | | llvm-svn: 29043
* When reading the symbol table, make sure to delete the ArchiveMemberReid Spencer2006-05-121-0/+2
| | | | | | created by reading the symbol table. llvm-svn: 28251
* Apply bug fix supplied by Greg Pettyjohn for a bug he found: '<invalid>' is ↵Jeff Cohen2006-05-061-1/+1
| | | | | | not a legal path on Windows. llvm-svn: 28153
* more C++ daintinessDuraid Madina2005-12-261-0/+1
| | | | llvm-svn: 25023
* Fix a problem with llvm-ranlib that (on some platforms) caused the archiveReid Spencer2005-11-302-36/+72
| | | | | | | | | | file to become corrupted due to interactions between mmap'd memory segments and file descriptors closing. The problem is completely avoiding by using a third temporary file. Patch provided by Evan Jones llvm-svn: 24527
* DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE nowChris Lattner2005-10-241-1/+0
| | | | llvm-svn: 23940
* speed up Archive::isBytecodeArchive in the case when the archive doesn't haveChris Lattner2005-09-231-18/+24
| | | | | | | an llvm-ranlib symtab. This speeds up gccld -native on an almost empty .o file from 1.63s to 0.18s. llvm-svn: 23406
* Final Changes For PR495:Reid Spencer2005-07-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
* For PR495:Reid Spencer2005-07-072-4/+4
| | | | | | | | | | | | | | | | | | | | | Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-051-1/+0
| | | | llvm-svn: 21704
* Remove trailing whitespaceMisha Brukman2005-04-214-93/+93
| | | | llvm-svn: 21416
* Use the actual uid/gid for defaulting the fields in the archive.Reid Spencer2005-04-211-2/+3
| | | | llvm-svn: 21405
* Eliminate calls to system dependent function getuid by usingReid Spencer2005-04-211-2/+3
| | | | | | | the newly implemented sys::Process::GetCurrentUserId function. Replace similarly for getgid. llvm-svn: 21402
* Initialize fields mode, uid, and gid.Misha Brukman2005-04-201-0/+6
| | | | | | Patch by Markus Oberhumer. Thanks! llvm-svn: 21369
* Align comments together for consistencyMisha Brukman2005-04-201-1/+1
| | | | llvm-svn: 21368
* Implement an isBytecodeArchive method to determine if an archive containsReid Spencer2005-02-261-0/+29
| | | | | | | bytecode file members or not. Patch Contributed By Adam Treat llvm-svn: 20338
* Properly close mapped files.Jeff Cohen2005-01-282-3/+3
| | | | llvm-svn: 19863
* Use binary mode for reading/writing bytecode filesJeff Cohen2005-01-221-2/+4
| | | | llvm-svn: 19751
* Remove potential platform portability issue with size of "int".Reid Spencer2004-12-291-1/+3
| | | | llvm-svn: 19172
* Fix problems uncovered by VC++ (first time compiled by VC++)Jeff Cohen2004-12-202-2/+1
| | | | llvm-svn: 19056
* For PR351:Reid Spencer2004-12-151-1/+0
| | | | | | | * Remove #inclusion of FileUtilities.h, not needed any more. * Convert getUniqueFilename -> sys::Pat::makeUnique() llvm-svn: 18948
* Make sure the Archive gets deleted if there's an error.Reid Spencer2004-12-131-4/+4
| | | | llvm-svn: 18869
* Implement error handling in OpenAndLoad* functions so the Linker can handle it.Reid Spencer2004-12-131-13/+22
| | | | llvm-svn: 18853
* Path::get -> Path::toStringReid Spencer2004-12-113-22/+24
| | | | llvm-svn: 18785
* Compute the firstFileOffset correctly after reading the LLVM symbol table.Reid Spencer2004-11-281-2/+3
| | | | llvm-svn: 18300
* Adjust to Compressor interface changeReid Spencer2004-11-251-2/+1
| | | | llvm-svn: 18249
OpenPOWER on IntegriCloud