summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Archive/ArchiveReader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move this to lib/ArchiveChris Lattner2007-05-061-633/+0
| | | | llvm-svn: 36888
* Switch this over to bitcode instead of bytecode.Chris Lattner2007-05-061-43/+18
| | | | llvm-svn: 36866
* add bitcode supportChris Lattner2007-05-061-7/+41
| | | | llvm-svn: 36856
* For PR1302:Reid Spencer2007-04-041-2/+2
| | | | | | Adjust useage of sys::Path::FileType for new enumerator names. llvm-svn: 35651
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-7/+10
| | | | | | | | | | | | | | | | | | | | 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-151-2/+11
| | | | | | Convert asserts into error messages. llvm-svn: 32607
* For PR797:Reid Spencer2006-08-251-4/+6
| | | | | | | 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-241-2/+6
| | | | | | | Remove exception handling from the bytecode archiver and adjust the llvm-ar tool to accommodate the new interfaces. llvm-svn: 29866
* Finish removal of EH usage from the Archive library. The REQUIRES_EH flagReid Spencer2006-07-071-68/+131
| | | | | | | in lib/Bytecode/Archive/Makefile is now removed. One small step closer to a smaller LLVM. llvm-svn: 29067
* 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
* more C++ daintinessDuraid Madina2005-12-261-0/+1
| | | | llvm-svn: 25023
* 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
* For PR495:Reid Spencer2005-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | 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 trailing whitespaceMisha Brukman2005-04-211-38/+38
| | | | llvm-svn: 21416
* 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
* 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-201-1/+0
| | | | llvm-svn: 19056
* 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-111-7/+7
| | | | llvm-svn: 18785
* Compute the firstFileOffset correctly after reading the LLVM symbol table.Reid Spencer2004-11-281-2/+3
| | | | llvm-svn: 18300
* Allow reading of member names that begin with an _ character.Reid Spencer2004-11-231-1/+2
| | | | llvm-svn: 18179
* Distinguish between BSD4.4 and SVR4 symbol tablesReid Spencer2004-11-201-27/+39
| | | | llvm-svn: 18044
* Correct the computation of when to add the padding. It is not based on theReid Spencer2004-11-191-8/+8
| | | | | | | | member's size. It is based on the oddness/evenness of the file pointer. This fixes a bug with llvm-ar not being able to read archives produced by llvm-ranlib when there are members with odd long file name lengths. llvm-svn: 17997
* Don't save an iterator, just use post-increment.Reid Spencer2004-11-191-4/+2
| | | | llvm-svn: 17981
* Make findModulesDefiningSymbols modify its symbols argument so we can \Reid Spencer2004-11-191-3/+14
| | | | | | eliminate symbols defined by the archive efficiently llvm-svn: 17976
* Make sure we parse bytecode with a module identifier that reflects the fullReid Spencer2004-11-171-3/+9
| | | | | | name of the module: "Archive.a(object.o)" llvm-svn: 17917
* Despite documentation to the contrary, Mac OSX and BSD 4.4 archive formatsReid Spencer2004-11-171-2/+3
| | | | | | | *do* include the length of the long file in the length of the member and they are *not* null terminated. llvm-svn: 17909
* Per code review:\Reid Spencer2004-11-161-15/+20
| | | | | | | * Make sure we write out the foreign symbol table if we read one \ * Make the padding calculation more efficiently and avoid Solaris warnings llvm-svn: 17883
* * Make sure the string table gets read even if there isn't a foreignReid Spencer2004-11-151-8/+20
| | | | | | | | symbol table. * Make sure we update the file pointer for each member when rebuilding the symbol table. llvm-svn: 17812
* Changes necessary to enable linking of archives without LLVM symbol tables.Reid Spencer2004-11-151-2/+47
| | | | llvm-svn: 17811
* Completely rewritten to allow reading of archives and symbol table lookup in ↵Reid Spencer2004-11-141-160/+369
| | | | | | a more efficient manner. llvm-svn: 17767
* Moved to lib/Bytecode/Archive in preparation for re-write.Reid Spencer2004-11-141-0/+194
llvm-svn: 17742
OpenPOWER on IntegriCloud