summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow reading of member names that begin with an _ character.Reid Spencer2004-11-231-1/+2
| | | | llvm-svn: 18179
* Fix a comment to imply the correct semantics.Reid Spencer2004-11-221-1/+1
| | | | llvm-svn: 18097
* Distinguish between BSD4.4 and SVR4 symbol tablesReid Spencer2004-11-204-40/+66
| | | | llvm-svn: 18044
* Correct the computation of when to add the padding. It is not based on theReid Spencer2004-11-192-9/+9
| | | | | | | | 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
* Add note that this is for old bytecode files.Chris Lattner2004-11-191-1/+1
| | | | llvm-svn: 17991
* 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
* Fix some things for Mac OSX archives:Reid Spencer2004-11-171-5/+14
| | | | | | | | | | | * 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
* 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
* Adjust long file name writing to match BSD 4.4 and Mac OSX style archives.Reid Spencer2004-11-171-10/+14
| | | | llvm-svn: 17910
* 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
* Fix typeo in comment.Reid Spencer2004-11-161-1/+1
| | | | llvm-svn: 17892
* Per code review:\Reid Spencer2004-11-161-44/+46
| | | | | | | | | | | | * 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
* 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
* Per code review:\Reid Spencer2004-11-161-1/+2
| | | | | | * Make sure all members are initialized upon construction llvm-svn: 17882
* Per code review:\Reid Spencer2004-11-161-8/+12
| | | | | | | * Get rid of memory leaks on exception \ * Provide better comments of how the memory handling works llvm-svn: 17876
* Do not emit FunctionBlock blocks for external functions. This shrinksChris Lattner2004-11-151-3/+5
| | | | | | bytecode files by about 8 bytes per external function llvm-svn: 17859
* Use a per-function flag bit to indicate whether or not there is a functionChris Lattner2004-11-151-3/+6
| | | | | | body for the function. llvm-svn: 17858
* Disable this change, it was prematureChris Lattner2004-11-151-3/+3
| | | | llvm-svn: 17857
* Make *SURE* to null out the pointer before throwing an exception, otherwiseChris Lattner2004-11-151-2/+6
| | | | | | the dtor for the BytecodeReader class will try to free it again! llvm-svn: 17856
* Cleanups. Null out pointer after freeing it for paranoiaChris Lattner2004-11-151-5/+5
| | | | llvm-svn: 17855
* If a function is external, do not output a FunctionBlock for the functionChris Lattner2004-11-151-3/+3
| | | | | | | AT ALL. This saves 11 bytes per external function from the bytecode file, and is also required to make GhostLinkage work. llvm-svn: 17854
* Make functions default to having external linkage if they have noChris Lattner2004-11-151-2/+2
| | | | | | FunctionBlock. llvm-svn: 17853
* * 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-153-21/+76
| | | | llvm-svn: 17811
* Moved to lib/Bytecode/Archive.Reid Spencer2004-11-141-194/+0
| | | | llvm-svn: 17800
* Simplify compression code by using the high level interface to the CompressorReid Spencer2004-11-141-73/+4
| | | | llvm-svn: 17771
* Add wrappers to get defined symbols from bytecodeReid Spencer2004-11-141-19/+48
| | | | llvm-svn: 17770
* Simplify handling of decompressionReid Spencer2004-11-141-15/+4
| | | | llvm-svn: 17769
* Simplify decompression code by using the high level interface to the CompressorReid Spencer2004-11-141-57/+11
| | | | llvm-svn: 17768
* 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
* Implementation declarations for ArchiveReid Spencer2004-11-141-108/+24
| | | | llvm-svn: 17766
* First working versionReid Spencer2004-11-142-224/+492
| | | | llvm-svn: 17765
* Add the Archive libraryReid Spencer2004-11-141-1/+1
| | | | llvm-svn: 17764
* Mark an unmaterialized function as having GhostLinkageMisha Brukman2004-11-141-0/+4
| | | | llvm-svn: 17748
* Moved to lib/Bytecode/Archive in preparation for re-write.Reid Spencer2004-11-141-0/+194
| | | | llvm-svn: 17742
* Recognize compressed LLVM bytecode files.John Criswell2004-11-091-0/+3
| | | | | | | This should fix the problem of not being able to link compressed LLVM bytecode files from LLVM libraries. llvm-svn: 17648
* * Comments & cleanup per CL code review.Reid Spencer2004-11-071-22/+56
| | | | | | * Accept 'llvc' as signature for compressed bytecode llvm-svn: 17579
* Add comments per CL code review.Reid Spencer2004-11-071-2/+6
| | | | llvm-svn: 17578
* * Add comments and cleanup per CL code reviewReid Spencer2004-11-071-31/+65
| | | | | | | * Make signature for compressed bytecode llvc instead of unreadable * Make the CompressionContext have a constructor and destructor. llvm-svn: 17576
* Add support for compressed bytecodeReid Spencer2004-11-063-25/+132
| | | | llvm-svn: 17535
* Implement the GetBytecodeSymbols interface function to extract just theReid Spencer2004-11-061-0/+39
| | | | | | externally visible defined symbols from a bytecode file. llvm-svn: 17503
* Makefile for the LLVMArchive library.Reid Spencer2004-11-061-0/+18
| | | | llvm-svn: 17500
* First kinda/sorta working version of the Archive library. Reading is notReid Spencer2004-11-063-0/+466
| | | | | | yet supported but writing works. Way too early to review this. More to come llvm-svn: 17499
* Fix library name.Reid Spencer2004-10-281-1/+1
| | | | llvm-svn: 17305
* Fix name of libraryReid Spencer2004-10-281-1/+1
| | | | llvm-svn: 17304
* Fix the previous bug the correct way. This fixes ptrdist/bcChris Lattner2004-10-241-2/+2
| | | | llvm-svn: 17201
* Fix a bug that Brian brought to my attention. This corrects:Chris Lattner2004-10-231-1/+2
| | | | | | Assembler/2004-10-22-BCWriterUndefBug.llx llvm-svn: 17177
* We won't use automakeReid Spencer2004-10-226-2031/+0
| | | | llvm-svn: 17155
* Initial automake generated Makefile templateReid Spencer2004-10-183-0/+1983
| | | | llvm-svn: 17136
OpenPOWER on IntegriCloud