summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/llvm-ld.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-4/+3
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-8/+8
| | | | | | | | | | | | | | | | | | 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
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-4/+4
| | | | | | | | | | | | | | | | instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
* Use (void *)(intptr_t) to cast function addresses to void*Dan Gohman2009-08-051-3/+3
| | | | | | | for use with sys::Path::GetMainExecutable, to avoid warnings with -pedantic. llvm-svn: 78245
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-051-10/+13
| | | | | | | | | | | | | just argv[0]. And remove the code for searching the current working directory and for searching PATH; the point of FindExecutable is not to find whatever version of the executable can be found by searching around, but to find an executable that accompanies the current executable. Update the tools to use sys::Program::FindProgramByName when they want PATH searching. llvm-svn: 78240
* Added -b option to override the default bitcode output file name.Sanjiv Gupta2009-07-221-10/+18
| | | | llvm-svn: 76768
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-18/+18
| | | | llvm-svn: 76070
* Kill off last uses of TargetMachineRegistry class.Daniel Dunbar2009-07-161-1/+0
| | | | llvm-svn: 75892
* To simplify the upcoming context-on-type change, switch all command line ↵Owen Anderson2009-07-151-1/+1
| | | | | | | | tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. llvm-svn: 75846
* 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-2/+4
| | | | | | | | | | 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
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-2/+6
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* make llvm-ld smart enough to link against native libraries that are Chris Lattner2009-01-051-2/+18
| | | | | | | not in system library directories by checking -L paths as well. Patch by Axel Naumann! llvm-svn: 61730
* ignore the -m elf_i386 directive used in the linux kernelAndrew Lenharth2008-11-191-0/+3
| | | | llvm-svn: 59642
* Since we are using GCC to assemble the program, make sure the assembly ↵Argyrios Kyrtzidis2008-06-271-0/+3
| | | | | | syntax is AT&T. llvm-svn: 52827
* Add an "exe" suffix only if the output file has no suffix at all.Argyrios Kyrtzidis2008-06-151-8/+8
| | | | llvm-svn: 52289
* Make sure all produced executable files have "exe" suffix on Windows.Argyrios Kyrtzidis2008-06-151-10/+16
| | | | | | With this more general way, -native and -native-cbe options are handled too. llvm-svn: 52287
* Append "exe" suffix to executable files.Argyrios Kyrtzidis2008-06-151-1/+11
| | | | llvm-svn: 52285
* Unbreak build with gcc 4.3: provide missed includes and silence most ↵Anton Korobeynikov2008-02-201-0/+1
| | | | | | annoying warnings. llvm-svn: 47367
* Add support for frameworks. Patch by Shantonu Sen!Chris Lattner2008-01-271-3/+20
| | | | llvm-svn: 46421
* Fix llvm-ld -Xlinker, patch by Daniel Teske!Chris Lattner2008-01-091-3/+1
| | | | llvm-svn: 45770
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Move the space in overview output for commands out of each of theDan Gohman2007-10-081-1/+1
| | | | | | commands and into the common code. llvm-svn: 42752
* Remove dead option.Reid Spencer2007-07-231-3/+0
| | | | llvm-svn: 40415
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-33/+33
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Fix pr1448Chris Lattner2007-06-191-14/+20
| | | | llvm-svn: 37658
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-061-12/+1
| | | | llvm-svn: 36868
* add bitcode support.Chris Lattner2007-05-061-4/+11
| | | | llvm-svn: 36853
* Augment the verbose output to print out the sub-commands executed.Reid Spencer2007-04-291-8/+29
| | | | llvm-svn: 36581
* For PR1302:Reid Spencer2007-04-041-12/+13
| | | | | | | Rename LinkItems as NativeLinkItems since it is filled out by the Linker library to contain only those items deemed to be native. llvm-svn: 35654
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-4/+4
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* Clean up error handling.Reid Spencer2007-02-091-72/+55
| | | | llvm-svn: 34073
* For PR1153:Reid Spencer2007-02-081-0/+5
| | | | | | Copy a couple more missing options from gccld to llvm-ld. llvm-svn: 34061
* default to emiting an uncompressed .bc fileChris Lattner2007-01-211-1/+1
| | | | llvm-svn: 33420
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-19/+19
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* 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
* 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
* 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
* - Fixed broken Win32 buildAnton Korobeynikov2006-09-011-1/+7
| | | | | | - Removed warning about clobbered parameter in Bytecode/Reader llvm-svn: 30026
* 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
* Fix cut-n-pasto in comments.Devang Patel2006-06-271-6/+5
| | | | llvm-svn: 28928
* 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
* 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
OpenPOWER on IntegriCloud