summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld
Commit message (Collapse)AuthorAgeFilesLines
...
* make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.Chris Lattner2006-12-061-0/+2
| | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. llvm-svn: 32250
* target constructors are never usedChris Lattner2006-12-011-4/+1
| | | | llvm-svn: 32099
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-291-21/+21
| | | | | | | adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. llvm-svn: 31990
* Need <iostream> for the time being.Bill Wendling2006-11-171-0/+1
| | | | llvm-svn: 31821
* Minor style fixes from review.Reid Spencer2006-11-111-3/+3
| | | | llvm-svn: 31685
* For PR998:Reid Spencer2006-11-111-12/+18
| | | | | | | | Fix an infinite loop in the Linker and a few other assorted link problems. Patch contributed by Scott Michel. Thanks, Scott! llvm-svn: 31680
* Fix a problem in the the last patch that subverts error message printing.Reid Spencer2006-11-051-1/+1
| | | | llvm-svn: 31466
* Unbreak VC++ build.Jeff Cohen2006-11-051-1/+1
| | | | llvm-svn: 31464
* Use LINK_COMPONENTS to specify *components* to link against instead ofChris Lattner2006-09-041-4/+1
| | | | | | using USED_LIBS to specify *libraries* to link against. llvm-svn: 30090
* - Fixed broken Win32 buildAnton Korobeynikov2006-09-011-1/+7
| | | | | | - Removed warning about clobbered parameter in Bytecode/Reader llvm-svn: 30026
* eliminate only use of FilteredPassNameParserChris Lattner2006-08-271-2/+1
| | | | llvm-svn: 29916
* For PR797:Reid Spencer2006-08-231-1/+4
| | | | | | | Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. llvm-svn: 29843
* For PR797:Reid Spencer2006-08-231-4/+3
| | | | | | | Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. llvm-svn: 29840
* For PR797:Reid Spencer2006-08-221-3/+13
| | | | | | Change the Path::make*OnDisk methods exception free and adjust their usage. llvm-svn: 29836
* For PR797:Reid Spencer2006-08-211-12/+39
| | | | | | | | Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. llvm-svn: 29791
* Make sure the verify pass gets run after the user's loaded passes as wellReid Spencer2006-08-201-3/+2
| | | | | | when the verify-each option is given. llvm-svn: 29783
* Rename the -verify option to be -verify-each so that it doesn't conflictReid Spencer2006-08-201-4/+4
| | | | | | | with the -verify pass option. It is also more accurate in that this option causes a verify option to be run after every pass. llvm-svn: 29782
* Convert llvm-ld to use the PluginLoader like opt instead of having itsReid Spencer2006-08-201-19/+31
| | | | | | | | | | one-off (and broken) RunOptimizations function. Also, run some cleanup passes after the user's loaded passes run. This make sure to clean up any cruft left around by thos passes. This patch was inspired by a patch submitted by Bram Adams. llvm-svn: 29781
* Tools require EH for their top-level try blocks.Chris Lattner2006-07-071-0/+1
| | | | llvm-svn: 29035
* Fix cut-n-pasto in comments.Devang Patel2006-06-271-6/+5
| | | | llvm-svn: 28928
* Don't pass target name into TargetData anymore, it is never used or needed.Chris Lattner2006-06-161-1/+1
| | | | llvm-svn: 28831
* Shorten a value description so --help out isn't so wide.Reid Spencer2006-06-071-1/+1
| | | | llvm-svn: 28721
* For PR780:Reid Spencer2006-06-071-1/+19
| | | | | | | | | 1. Add #includes to LinkAllVMCore.h to get Mangler.o and InlineAsm.o 2. Make Mangler.h and InlineAsm.h use the macros to ensure linkage 3. Make each of the tools with --load options include LinkAllVMCore.h This should be the last set of changes for this bug and 800. llvm-svn: 28719
* Fix a -pedantic warningChris Lattner2006-06-021-1/+1
| | | | llvm-svn: 28670
* Use archive libraries instead of object files for VMCore, BCReader,Reid Spencer2006-06-011-2/+2
| | | | | | | BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate these changes. This was done to speed up link times. llvm-svn: 28610
* Delete memory allocated by CopyEnvChris Lattner2006-05-141-1/+3
| | | | llvm-svn: 28288
* Make sure command line options are parsed before we try to add the LibPathReid Spencer2006-03-061-4/+4
| | | | | | (-L options) to TheLinker. Problem noticed by Wink Saville. llvm-svn: 26571
* For PR521:Reid Spencer2006-01-101-1/+2
| | | | | | | | | With these patches we implement the ability for the Linker library to keep track of which libraries were actually bytecode files (not archives) and cause their users to remove such files from the list of libraries to pass to the native linker. llvm-svn: 25169
* Implement PR512:Reid Spencer2005-12-211-0/+39
| | | | | | | | | | | | This patch adds a -post-link-opts option to llvm-ld which allows an arbitrary program to optimize bytecode after linking. The program is passed two file names. The first is the input (linked bytecode) the second is where it must place its output (presumably after optimizing). If the output file is bytecode, it is used as a substitute for the input. This will allow things like poolalloc to be written as a separate program instead of a loadable module or built into LLVM. llvm-svn: 24893
* Adjust the constructor to the Linker class to take an argument that namesReid Spencer2005-12-131-1/+1
| | | | | | | | 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
* Move some constant folding code shared by Analysis and Transform passesJohn Criswell2005-10-271-1/+1
| | | | | | | | into the LLVMAnalysis library. This allows LLVMTranform and LLVMTransformUtils to be archives and linked with LLVMAnalysis.a, which provides any missing definitions. llvm-svn: 24036
* 1. Remove libraries no longer created from the list of libraries linked into theJohn Criswell2005-10-261-1/+1
| | | | | | | | | | SparcV9 JIT. 2. Make LLVMTransformUtils a relinked object file and always link it before LLVMAnalysis.a. These two libraries have circular dependencies on each other which creates problem when building the SparcV9 JIT. This change fixes the dependency on all platforms problems with a minimum of fuss. llvm-svn: 24023
* Fix PR637Chris Lattner2005-10-181-6/+4
| | | | llvm-svn: 23784
* Final Changes For PR495:Reid Spencer2005-07-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
* For PR495:Reid Spencer2005-07-071-2/+2
| | | | | | | | | | | | | | | | | | | | | 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
* Remove trailing whitespaceMisha Brukman2005-04-222-34/+34
| | | | llvm-svn: 21428
* The first argument to ExecuteAndWait should be the program name, but pointedChris Lattner2005-04-101-9/+12
| | | | | | out by Markus F.X.J. Oberhumer. llvm-svn: 21211
* Conform to the documented interface by null terminating argument lists!Chris Lattner2005-02-131-0/+3
| | | | llvm-svn: 20167
* Use binary mode for reading/writing bytecode filesJeff Cohen2005-01-221-1/+3
| | | | llvm-svn: 19751
* For PR351:Reid Spencer2004-12-301-117/+124
| | | | | | | | | | * Place a try/catch block around the entire tool to Make sure std::string exceptions are caught and printed before exiting the tool. * Make sure we catch unhandled exceptions at the top level so that we don't abort with a useless message but indicate than an unhandled exception was generated. llvm-svn: 19192
* Correct compilation for Cygwin. FindExecutable now returns a sys::Path.Reid Spencer2004-12-221-3/+3
| | | | llvm-svn: 19109
* Fix the Win32 buildMisha Brukman2004-12-221-1/+1
| | | | llvm-svn: 19088
* Make parameters to CopyFile use explicit instantiation of sys::Path.Reid Spencer2004-12-221-1/+1
| | | | llvm-svn: 19086
* For PR351:Reid Spencer2004-12-191-14/+16
| | | | | | * Support changes in sys::Program::ExecuteAndWait interface llvm-svn: 19044
* sys::CopyFile returns void and throws an exception on error which will beReid Spencer2004-12-181-4/+1
| | | | | | caught by llvm-ld's main function. llvm-svn: 19030
* The CopyFile function got moved into the sys namespace.Reid Spencer2004-12-181-1/+1
| | | | llvm-svn: 19026
* For PR351:Reid Spencer2004-12-161-10/+13
| | | | | | | | | | | * removeFile() -> sys::Path::destroyFile() * remove extraneous toString() calls * convert local variables representing path names from std::string to sys::Path * Use sys::Path objects with FileRemove instead of std::string * Use sys::Path methods for construction of path names llvm-svn: 19001
* For PR351:Reid Spencer2004-12-141-67/+40
| | | | | | | * Change ExecWait calls to sys::Program::ExecuteAndWait * Convert to use sys::Path where it makes sense llvm-svn: 18929
* For PR351:Reid Spencer2004-12-131-4/+5
| | | | | | Adjust to interface change for FindExecutable. llvm-svn: 18920
* For PR351:Reid Spencer2004-12-131-3/+3
| | | | | | | Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with sys::Path::makeReadable and sys::Path:makeExecutable, respectively. llvm-svn: 18909
OpenPOWER on IntegriCloud