summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/Linker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Now that Linker.cpp is almost empty, merge it into LinkModules.cpp.Rafael Espindola2013-05-041-30/+0
| | | | | | Also remove unused includes. llvm-svn: 181100
* Last batch of cleanups to Linker.h.Rafael Espindola2013-05-041-0/+4
| | | | | | | | Update comments, fix * placement, fix method names that are not used in clang, add a linkInModule that takes a Mode and put it in Linker.cpp. llvm-svn: 181099
* Don't construct or delete a module on the Linker.Rafael Espindola2013-05-041-5/+0
| | | | | | | The linker is now responsible only for actually linking the modules, it is up to the clients to create and destroy them. llvm-svn: 181098
* Don't store the context in the Linker.Rafael Espindola2013-05-041-2/+0
| | | | llvm-svn: 181097
* Remove unused members and constructor arguments.Rafael Espindola2013-05-041-11/+5
| | | | llvm-svn: 181096
* Delete dead code from the linker.Rafael Espindola2013-05-041-31/+0
| | | | llvm-svn: 181094
* The Linker interface has some dead code after the cleanup in r172749Eli Bendersky2013-03-191-21/+0
| | | | | | | (and possibly others). The attached patch removes it, and tries to update comments accordingly. llvm-svn: 177406
* [Linker] Kill Linker::LoadObject which is dead, and drop the BitReader ↵Daniel Dunbar2013-01-181-23/+0
| | | | | | dependency again. llvm-svn: 172838
* [Linker] Drop support for IR-level extended linking support (archives, etc.).Daniel Dunbar2013-01-171-67/+0
| | | | | | | | - This code is dead, and the "right" way to get this support is to use the platform-specific linker-integrated LTO mechanisms, or the forthcoming LLVM linker. llvm-svn: 172749
* Move all of the header files which are involved in modelling the LLVM IRChandler Carruth2013-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
* Use the new script to sort the includes of every file under lib.Chandler Carruth2012-12-031-2/+2
| | | | | | | | | | | | | | | | | Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
* drop unneeded config.h includesDylan Noblesmith2011-12-221-1/+0
| | | | llvm-svn: 147197
* lib/Linker: add support of deps which does not end with ".so".Ivan Krasin2011-09-201-0/+8
| | | | | | | | It happens (for example) when you want to have a dependency on the .so with the specific version, like liblzma.so.1.0.0 or libcrypto.so.0.9.8. llvm-svn: 140201
* MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer2010-12-161-6/+4
| | | | | | via an out parm. llvm-svn: 121958
* Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵Michael J. Spencer2010-12-091-2/+6
| | | | | | error_code &ec. And fix clients. llvm-svn: 121379
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT.Mikhail Glushenkov2010-11-021-1/+1
| | | | | | This allows using GetDLLSuffix() with appendSuffix(). llvm-svn: 118051
* Trailing whitespace.Mikhail Glushenkov2010-11-021-2/+2
| | | | llvm-svn: 118050
* Change this back to errs().David Greene2010-01-051-2/+1
| | | | llvm-svn: 92674
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92626
* Pass StringRef by value.Daniel Dunbar2009-11-061-8/+8
| | | | llvm-svn: 86251
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-10/+7
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* Finish migrating VMCore to StringRef/Twine based APIs.Daniel Dunbar2009-07-251-14/+14
| | | | llvm-svn: 77051
* Make the use of const with respect to LLVMContext sane. Hopefully this is ↵Owen Anderson2009-07-011-1/+1
| | | | | | | | the last time, for the moment, that I will need to make far-reaching changes. llvm-svn: 74655
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-19/+16
| | | | | | | | | | LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
* Make comments and code for QuietWarnings and QuietErrorsDan Gohman2008-10-251-1/+1
| | | | | | actually correspond to what their names suggest. llvm-svn: 58146
* Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner2008-04-011-3/+3
| | | | | | | | start of a filename, not a filename+length. All clients can produce a null terminated name, and the system api's require null terminated strings anyway. llvm-svn: 49041
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* eliminate residual cruft related to recognizing bytecodeGabor Greif2007-07-061-2/+0
| | | | | | | files. bitcode files are the only LLVM format left. llvm-svn: 37945
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-3/+3
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* switch this to bitcode instead of bytecodeChris Lattner2007-05-061-14/+5
| | | | llvm-svn: 36867
* add bitcode supportChris Lattner2007-05-061-3/+21
| | | | llvm-svn: 36855
* 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
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-3/+3
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Removed #include <iostream> and replaced with llvm_* streams.Bill Wendling2006-11-271-11/+7
| | | | llvm-svn: 31936
* Remove a redundant syscall.Chris Lattner2006-07-281-25/+21
| | | | llvm-svn: 29405
* Fixed style of curly brace. No functionality changes.John Criswell2006-01-171-2/+1
| | | | llvm-svn: 25414
* Be a little more explanatory in a comment.Reid Spencer2006-01-101-1/+1
| | | | llvm-svn: 25168
* Adjust the constructor to the Linker class to take an argument that namesReid Spencer2005-12-131-2/+2
| | | | | | | | the module being constructed. This is used to correctly name the module. Previously the name of the linker tool was used which produces confusing output when the module identifier is used in an error message. llvm-svn: 24699
* For PR495:Reid Spencer2005-07-071-17/+25
| | | | | | | | | | | | | | | | | | | | | 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
* For PR495:Reid Spencer2005-07-071-1/+1
| | | | | | | | | | | Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
* Remove trailing whitespaceMisha Brukman2005-04-211-14/+14
| | | | llvm-svn: 21422
* Add support for ".so" files compiled with LLVM which contain LLVM bytecode.Chris Lattner2005-02-191-1/+3
| | | | llvm-svn: 20253
* Fix a compile error. config.h is now needed because DataTypes.h doesn'tReid Spencer2004-12-161-0/+1
| | | | | | include it any more. llvm-svn: 18993
* * Fix header block.Reid Spencer2004-12-131-8/+8
| | | | | | | | * Fix loop style per standards * Don't create a new Module when the Linker's module is released. * Add/fix function comments. llvm-svn: 18871
* This file contains basic Linker facilities needed by all toolsReid Spencer2004-12-131-0/+166
llvm-svn: 18860
OpenPOWER on IntegriCloud