aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Linker/Linker.cpp
AgeCommit message (Collapse)AuthorFilesLines
2011-12-22drop unneeded config.h includesDylan Noblesmith1-1/+0
llvm-svn: 147197
2011-09-20lib/Linker: add support of deps which does not end with ".so".Ivan Krasin1-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
2010-12-16MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer1-6/+4
via an out parm. llvm-svn: 121958
2010-12-09Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵Michael J. Spencer1-2/+6
error_code &ec. And fix clients. llvm-svn: 121379
2010-11-29Merge System into Support.Michael J. Spencer1-1/+1
llvm-svn: 120298
2010-11-02GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT.Mikhail Glushenkov1-1/+1
This allows using GetDLLSuffix() with appendSuffix(). llvm-svn: 118051
2010-11-02Trailing whitespace.Mikhail Glushenkov1-2/+2
llvm-svn: 118050
2010-01-05Change this back to errs().David Greene1-2/+1
llvm-svn: 92674
2010-01-05Change errs() to dbgs().David Greene1-1/+2
llvm-svn: 92626
2009-11-06Pass StringRef by value.Daniel Dunbar1-8/+8
llvm-svn: 86251
2009-08-23Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner1-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
2009-07-25Finish migrating VMCore to StringRef/Twine based APIs.Daniel Dunbar1-14/+14
llvm-svn: 77051
2009-07-01Make the use of const with respect to LLVMContext sane. Hopefully this is ↵Owen Anderson1-1/+1
the last time, for the moment, that I will need to make far-reaching changes. llvm-svn: 74655
2009-07-01Hold the LLVMContext by reference rather than by pointer.Owen Anderson1-1/+1
llvm-svn: 74640
2009-07-01Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson1-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
2008-10-25Make comments and code for QuietWarnings and QuietErrorsDan Gohman1-1/+1
actually correspond to what their names suggest. llvm-svn: 58146
2008-04-01Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner1-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
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
llvm-svn: 45418
2007-07-06eliminate residual cruft related to recognizing bytecodeGabor Greif1-2/+0
files. bitcode files are the only LLVM format left. llvm-svn: 37945
2007-07-05Here is the bulk of the sanitizing.Gabor Greif1-3/+3
Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
2007-05-06switch this to bitcode instead of bytecodeChris Lattner1-14/+5
llvm-svn: 36867
2007-05-06add bitcode supportChris Lattner1-3/+21
llvm-svn: 36855
2007-02-07push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner1-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
2006-12-07Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling1-3/+3
now cerr, cout, and NullStream resp. llvm-svn: 32298
2006-11-27Removed #include <iostream> and replaced with llvm_* streams.Bill Wendling1-11/+7
llvm-svn: 31936
2006-07-28Remove a redundant syscall.Chris Lattner1-25/+21
llvm-svn: 29405
2006-01-17Fixed style of curly brace. No functionality changes.John Criswell1-2/+1
llvm-svn: 25414
2006-01-10Be a little more explanatory in a comment.Reid Spencer1-1/+1
llvm-svn: 25168
2005-12-13Adjust the constructor to the Linker class to take an argument that namesReid Spencer1-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
2005-07-07For PR495:Reid Spencer1-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
2005-07-07For PR495:Reid Spencer1-1/+1
Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
2005-04-21Remove trailing whitespaceMisha Brukman1-14/+14
llvm-svn: 21422
2005-02-19Add support for ".so" files compiled with LLVM which contain LLVM bytecode.Chris Lattner1-1/+3
llvm-svn: 20253
2004-12-16Fix a compile error. config.h is now needed because DataTypes.h doesn'tReid Spencer1-0/+1
include it any more. llvm-svn: 18993
2004-12-13* Fix header block.Reid Spencer1-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
2004-12-13This file contains basic Linker facilities needed by all toolsReid Spencer1-0/+166
llvm-svn: 18860