9329172767 
								
							 
						 
						
							
							
								
								For PR351:  
							
							... 
							
							
							
							* Remove #inclusion of FileUtilities.h, not needed any more.
* Convert getUniqueFilename -> sys::Pat::makeUnique()
llvm-svn: 18948 
							
						 
						
							2004-12-15 01:51:56 +00:00  
				
					
						
							
							
								 
						
							
								ac9fe82875 
								
							 
						 
						
							
							
								
								Make sure the Archive gets deleted if there's an error.  
							
							... 
							
							
							
							llvm-svn: 18869 
							
						 
						
							2004-12-13 03:22:31 +00:00  
				
					
						
							
							
								 
						
							
								a204547e32 
								
							 
						 
						
							
							
								
								Implement error handling in OpenAndLoad* functions so the Linker can handle it.  
							
							... 
							
							
							
							llvm-svn: 18853 
							
						 
						
							2004-12-13 02:59:03 +00:00  
				
					
						
							
							
								 
						
							
								5ccfd5a48b 
								
							 
						 
						
							
							
								
								Path::get -> Path::toString  
							
							... 
							
							
							
							llvm-svn: 18785 
							
						 
						
							2004-12-11 00:14:15 +00:00  
				
					
						
							
							
								 
						
							
								8a3312cab3 
								
							 
						 
						
							
							
								
								Compute the firstFileOffset correctly after reading the LLVM symbol table.  
							
							... 
							
							
							
							llvm-svn: 18300 
							
						 
						
							2004-11-28 03:13:02 +00:00  
				
					
						
							
							
								 
						
							
								af6fd29a08 
								
							 
						 
						
							
							
								
								Adjust to Compressor interface change  
							
							... 
							
							
							
							llvm-svn: 18249 
							
						 
						
							2004-11-25 19:38:05 +00:00  
				
					
						
							
							
								 
						
							
								a193f3cdbf 
								
							 
						 
						
							
							
								
								Allow reading of member names that begin with an _ character.  
							
							... 
							
							
							
							llvm-svn: 18179 
							
						 
						
							2004-11-23 22:35:39 +00:00  
				
					
						
							
							
								 
						
							
								7a32486483 
								
							 
						 
						
							
							
								
								Distinguish between BSD4.4 and SVR4 symbol tables  
							
							... 
							
							
							
							llvm-svn: 18044 
							
						 
						
							2004-11-20 07:29:40 +00:00  
				
					
						
							
							
								 
						
							
								78e12c73e5 
								
							 
						 
						
							
							
								
								Correct the computation of when to add the padding. It is not based on the  
							
							... 
							
							
							
							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 
							
						 
						
							2004-11-19 17:08:00 +00:00  
				
					
						
							
							
								 
						
							
								fc9f779039 
								
							 
						 
						
							
							
								
								Don't save an iterator, just use post-increment.  
							
							... 
							
							
							
							llvm-svn: 17981 
							
						 
						
							2004-11-19 03:44:10 +00:00  
				
					
						
							
							
								 
						
							
								39a0347b79 
								
							 
						 
						
							
							
								
								Make findModulesDefiningSymbols modify its symbols argument so we can \  
							
							... 
							
							
							
							eliminate symbols defined by the archive efficiently
llvm-svn: 17976 
							
						 
						
							2004-11-19 03:18:22 +00:00  
				
					
						
							
							
								 
						
							
								67c46c8d70 
								
							 
						 
						
							
							
								
								Fix some things for Mac OSX archives:  
							
							... 
							
							
							
							* ensure trailing spaces are eliminated so they don't factor into the
  length of a member's name.
* make sure all the bytes of a name are written even if the name ends in
  multiple null characters (bug in OSX ar)
* make sure we provide the full member name when searching for symbols so
  the module name is not accidentally duplicated.
llvm-svn: 17918 
							
						 
						
							2004-11-17 18:28:29 +00:00  
				
					
						
							
							
								 
						
							
								b58bf5fa28 
								
							 
						 
						
							
							
								
								Make sure we parse bytecode with a module identifier that reflects the full  
							
							... 
							
							
							
							name of the module: "Archive.a(object.o)"
llvm-svn: 17917 
							
						 
						
							2004-11-17 18:25:21 +00:00  
				
					
						
							
							
								 
						
							
								1154bb6b43 
								
							 
						 
						
							
							
								
								Adjust long file name writing to match BSD 4.4 and Mac OSX style archives.  
							
							... 
							
							
							
							llvm-svn: 17910 
							
						 
						
							2004-11-17 16:14:21 +00:00  
				
					
						
							
							
								 
						
							
								0dea46fe67 
								
							 
						 
						
							
							
								
								Despite documentation to the contrary, Mac OSX and BSD 4.4 archive formats  
							
							... 
							
							
							
							*do* include the length of the long file in the length of the member and
they are *not* null terminated.
llvm-svn: 17909 
							
						 
						
							2004-11-17 16:13:11 +00:00  
				
					
						
							
							
								 
						
							
								4c66d89b33 
								
							 
						 
						
							
							
								
								Fix typeo in comment.  
							
							... 
							
							
							
							llvm-svn: 17892 
							
						 
						
							2004-11-16 07:05:16 +00:00  
				
					
						
							
							
								 
						
							
								8d784fbd3f 
								
							 
						 
						
							
							
								
								Per code review:\  
							
							... 
							
							
							
							* Make the numVbrBytes function more efficient and better documented \
* Fix a bug in name truncation \
* Add comments before functions \
* Get rid of functions that are now inlined into the header \
* Do not have Archive doing symbol table printing \
* Put assert comments into the assert so they print out \
* Make sure foreign symbol tables are written
llvm-svn: 17884 
							
						 
						
							2004-11-16 06:47:30 +00:00  
				
					
						
							
							
								 
						
							
								4abd79e8ea 
								
							 
						 
						
							
							
								
								Per code review:\  
							
							... 
							
							
							
							* 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 
							
						 
						
							2004-11-16 06:47:19 +00:00  
				
					
						
							
							
								 
						
							
								40878f35de 
								
							 
						 
						
							
							
								
								Per code review:\  
							
							... 
							
							
							
							* Make sure all members are initialized upon construction
llvm-svn: 17882 
							
						 
						
							2004-11-16 06:47:07 +00:00  
				
					
						
							
							
								 
						
							
								cbd9aeb587 
								
							 
						 
						
							
							
								
								* Make sure the string table gets read even if there isn't a foreign  
							
							... 
							
							
							
							symbol table.
* Make sure we update the file pointer for each member when rebuilding the
  symbol table.
llvm-svn: 17812 
							
						 
						
							2004-11-15 01:40:20 +00:00  
				
					
						
							
							
								 
						
							
								fcf5ef7a4a 
								
							 
						 
						
							
							
								
								Changes necessary to enable linking of archives without LLVM symbol tables.  
							
							... 
							
							
							
							llvm-svn: 17811 
							
						 
						
							2004-11-15 01:20:11 +00:00  
				
					
						
							
							
								 
						
							
								f0c201b34d 
								
							 
						 
						
							
							
								
								Completely rewritten to allow reading of archives and symbol table lookup in a more efficient manner.  
							
							... 
							
							
							
							llvm-svn: 17767 
							
						 
						
							2004-11-14 21:58:33 +00:00  
				
					
						
							
							
								 
						
							
								948ff3d628 
								
							 
						 
						
							
							
								
								Implementation declarations for Archive  
							
							... 
							
							
							
							llvm-svn: 17766 
							
						 
						
							2004-11-14 21:57:46 +00:00  
				
					
						
							
							
								 
						
							
								ba09b3bf28 
								
							 
						 
						
							
							
								
								First working version  
							
							... 
							
							
							
							llvm-svn: 17765 
							
						 
						
							2004-11-14 21:56:59 +00:00  
				
					
						
							
							
								 
						
							
								b9e561e90c 
								
							 
						 
						
							
							
								
								Moved to lib/Bytecode/Archive in preparation for re-write.  
							
							... 
							
							
							
							llvm-svn: 17742 
							
						 
						
							2004-11-14 19:59:40 +00:00  
				
					
						
							
							
								 
						
							
								0f8359b061 
								
							 
						 
						
							
							
								
								Makefile for the LLVMArchive library.  
							
							... 
							
							
							
							llvm-svn: 17500 
							
						 
						
							2004-11-06 08:52:36 +00:00  
				
					
						
							
							
								 
						
							
								0cc653e59b 
								
							 
						 
						
							
							
								
								First kinda/sorta working version of the Archive library. Reading is not  
							
							... 
							
							
							
							yet supported but writing works. Way too early to review this. More to come
llvm-svn: 17499 
							
						 
						
							2004-11-06 08:51:45 +00:00