summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
Commit message (Collapse)AuthorAgeFilesLines
...
* And final pack of warnings silencingAnton Korobeynikov2008-02-201-2/+5
| | | | llvm-svn: 47372
* random cleanups.Chris Lattner2008-02-191-7/+4
| | | | llvm-svn: 47334
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-294-8/+8
| | | | llvm-svn: 45418
* remove attribution from lib Makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45415
* Ignore functions with internal linkages during linking. This snipped mimics theAnton Korobeynikov2007-12-271-0/+3
| | | | | | behaviour of LinkGlobals() function. llvm-svn: 45375
* Fixing several transforms which would drop the collector attributeGordon Henriksen2007-12-251-0/+2
| | | | | | when copying functions. llvm-svn: 45356
* Fix PR1146: parameter attributes are longer part ofDuncan Sands2007-11-271-0/+1
| | | | | | | | | | | | the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. llvm-svn: 44359
* Use correct parentheses with the '&& "..."' idiom in an assert.Dan Gohman2007-10-081-2/+2
| | | | llvm-svn: 42750
* Fix PR1611 - Visibility should be ignored for a declarationChris Lattner2007-08-191-6/+13
| | | | | | | when a definition's visibility is different. Likewise, the visibility of two declarations mismatching is not an error. llvm-svn: 41174
* Improve error handling in the linker by:Reid Spencer2007-08-161-6/+6
| | | | | | | | | | | | | 1. Eliminate redundant error messages. LinkInFile and LinkInArchive already call the error() method in each case so there's no use telling the user again that an item couldn't be linked in. 2. Improve the formatting of error messages (separating content). 3. Change the wording for the warning about unrecognized files. Make it clear that the file is being ignored. llvm-svn: 41121
* Ensure that error messages a propagated from calls to LinkInModule so they getReid Spencer2007-08-161-3/+4
| | | | | | reported to the end user. llvm-svn: 41117
* Allow the filename "-" to be a place holder for stdin. This allows directingReid Spencer2007-08-081-0/+16
| | | | | | stdin through llvm-ld and llvm-link. llvm-svn: 40938
* Report an error if one occurs in releaseModule.Reid Spencer2007-07-221-0/+3
| | | | llvm-svn: 40405
* eliminate residual cruft related to recognizing bytecodeGabor Greif2007-07-062-7/+1
| | | | | | | files. bitcode files are the only LLVM format left. llvm-svn: 37945
* Here is the bulk of the sanitizing.Gabor Greif2007-07-053-12/+12
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Fix a bug in my previous patch.Lauro Ramos Venancio2007-06-281-3/+2
| | | | llvm-svn: 37778
* When linking two modules, we should copy the alias.Lauro Ramos Venancio2007-06-281-0/+28
| | | | llvm-svn: 37776
* Propagate alignment, section name and visibility when linking "appendingLauro Ramos Venancio2007-06-061-0/+15
| | | | | | | global values". Fix noinline linkage. llvm-svn: 37482
* switch this to bitcode instead of bytecodeChris Lattner2007-05-062-17/+8
| | | | llvm-svn: 36867
* add bitcode supportChris Lattner2007-05-063-4/+23
| | | | llvm-svn: 36855
* If an archive is not recognized as an LLVM bytecode archive then declareReid Spencer2007-04-302-3/+8
| | | | | | | | | that it is native so that the linker will pass it on downstream. This avoids a problem where the native link line fails because there is both a .so and a .a file. The .a file gets processed as bytecode and then dropped from the command line. llvm-svn: 36584
* Dependent libraries could be native too.Reid Spencer2007-04-301-1/+4
| | | | llvm-svn: 36582
* Implement visibility checking during linking. Also implement protectedAnton Korobeynikov2007-04-291-1/+14
| | | | | | visibility support for bitcode. llvm-svn: 36577
* Implement the "thread_local" keyword.Lauro Ramos Venancio2007-04-121-3/+4
| | | | llvm-svn: 35950
* For PR1146:Reid Spencer2007-04-111-4/+12
| | | | | | | Put the parameter attributes in their own ParamAttr name space. Adjust the rest of llvm as a result. llvm-svn: 35877
* For PR1302:Reid Spencer2007-04-041-8/+8
| | | | | | | Use local variable names that match the function parameter name that it is passed to so the code is more clear, to wit: is_bytecode -> is_native llvm-svn: 35656
* For PR1302:Reid Spencer2007-04-041-31/+61
| | | | | | | Implement file tests for both LinkInLibrary and LinkInFile to determine if the file is native. Don't generate warnings if the file is native. llvm-svn: 35653
* For PR1195:Reid Spencer2007-02-151-2/+2
| | | | | | | Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. llvm-svn: 34293
* simplify this code by using value::takenameChris Lattner2007-02-111-8/+5
| | | | llvm-svn: 34172
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+4
| | | | | | | | | | | | | | | | | | | | 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 PR411:Reid Spencer2007-02-051-1/+1
| | | | | | | | Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) llvm-svn: 33922
* For PR411:Reid Spencer2007-02-051-87/+99
| | | | | | | | | | This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. llvm-svn: 33918
* Fix some comments and other minor sundry things.Reid Spencer2007-02-041-12/+13
| | | | llvm-svn: 33873
* Ensure that visibility and section are properly propagated.Reid Spencer2007-02-041-9/+8
| | | | llvm-svn: 33872
* Back out last revision which was committed by accident.Reid Spencer2007-02-041-101/+85
| | | | llvm-svn: 33871
* Make sure that section and visibility are properly propagated.Reid Spencer2007-02-041-85/+101
| | | | llvm-svn: 33870
* preserve sections of globalsAndrew Lenharth2007-02-011-1/+10
| | | | llvm-svn: 33756
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-302-13/+13
| | | | | | confusion with external linkage types. llvm-svn: 33663
* Read from the right place.Chris Lattner2007-01-291-1/+1
| | | | llvm-svn: 33611
* Fix PR1139Chris Lattner2007-01-291-17/+24
| | | | llvm-svn: 33610
* For PR761:Reid Spencer2007-01-261-8/+14
| | | | | | | The Module::setEndianness and Module::setPointerSize methods have been removed. Instead you can get/set the DataLayout. Adjust thise accordingly. llvm-svn: 33530
* For PR1064:Reid Spencer2007-01-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | | Implement the arbitrary bit-width integer feature. The feature allows integers of any bitwidth (up to 64) to be defined instead of just 1, 8, 16, 32, and 64 bit integers. This change does several things: 1. Introduces a new Derived Type, IntegerType, to represent the number of bits in an integer. The Type classes SubclassData field is used to store the number of bits. This allows 2^23 bits in an integer type. 2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and 64-bit integers. These are replaced with just IntegerType which is not a primitive any more. 3. Adjust the rest of LLVM to account for this change. Note that while this incremental change lays the foundation for arbitrary bit-width integers, LLVM has not yet been converted to actually deal with them in any significant way. Most optimization passes, for example, will still only deal with the byte-width integer types. Future increments will rectify this situation. llvm-svn: 33113
* For PR411:Reid Spencer2007-01-061-18/+22
| | | | | | | | | Take an incremental step towards type plane elimination. This change separates types from values in the symbol tables by finally making use of the TypeSymbolTable class. This yields more natural interfaces for dealing with types and unclutters the SymbolTable class. llvm-svn: 32956
* extern_weak linkage. fixes PR1038Andrew Lenharth2006-12-151-1/+5
| | | | llvm-svn: 32603
* Change inferred getCast into specific getCast. Passes all tests.Reid Spencer2006-12-121-6/+6
| | | | llvm-svn: 32469
* Don't use <sstream> in Streams.h but <iosfwd> instead.Bill Wendling2006-12-071-0/+1
| | | | llvm-svn: 32340
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-072-12/+11
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Introducing external weak linkage. Darwin codegen should be added later.Anton Korobeynikov2006-12-011-12/+24
| | | | llvm-svn: 32052
* Removed #include <iostream> and replaced with llvm_* streams.Bill Wendling2006-11-272-20/+16
| | | | llvm-svn: 31936
* Remvoe a do-nothing else block.Reid Spencer2006-11-111-6/+1
| | | | llvm-svn: 31687
OpenPOWER on IntegriCloud