summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link/llvm-link.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-16/+15
| | | | llvm-svn: 76070
* Fix this comment to mention outs() rather than cout.Dan Gohman2009-07-151-1/+1
| | | | llvm-svn: 75858
* 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
* Add a Force option to raw_fd_ostream to specify whether openingDan Gohman2009-07-151-16/+10
| | | | | | | | an existing file is considered an error. Convert several tools to use raw_fd_ostream instead of std::ostream, and to use this new option instead of doing a manual check. llvm-svn: 75801
* 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-3/+3
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-4/+7
| | | | | | | | | | 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-3/+6
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* Add #includes to make some dependencies explicit.Dan Gohman2008-05-231-0/+1
| | | | llvm-svn: 51496
* 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
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-5/+5
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* use the new MemoryBuffer interfaces to simplify error reporting in clients.Chris Lattner2007-05-061-6/+4
| | | | llvm-svn: 36900
* remove dead optionChris Lattner2007-05-061-3/+0
| | | | llvm-svn: 36898
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-061-25/+9
| | | | llvm-svn: 36868
* remove EH cruft, add bitcode supportChris Lattner2007-05-061-66/+80
| | | | llvm-svn: 36841
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+3
| | | | | | | | | | | | | | | | | | | | 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
* 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-24/+22
| | | | | | 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-19/+20
| | | | | | | 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
* For PR495:Reid Spencer2005-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | 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-221-3/+3
| | | | llvm-svn: 21428
* Print the module, not the pointer.Chris Lattner2005-02-131-1/+1
| | | | llvm-svn: 20156
* Use binary mode for reading/writing bytecode filesJeff Cohen2005-01-221-1/+4
| | | | llvm-svn: 19751
* Fix typo 'ompress' => 'compress'.Jeff Cohen2005-01-011-1/+1
| | | | llvm-svn: 19232
* For PR351:Reid Spencer2004-12-301-52/+59
| | | | | | | | | | * 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
* LinkModules is now in the Linker classReid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18863
* Path::get -> Path::toStringReid Spencer2004-12-111-1/+1
| | | | llvm-svn: 18785
* Linker.h moved to include/llvm.Reid Spencer2004-11-141-1/+1
| | | | llvm-svn: 17805
* Fix usage of changed function prototypeReid Spencer2004-11-141-1/+1
| | | | llvm-svn: 17798
* Rename the option for defeating compression to be a little more specific.Reid Spencer2004-11-071-1/+1
| | | | llvm-svn: 17567
* * Enable bytecode compression by defaultReid Spencer2004-11-071-1/+4
| | | | | | * Provide a -no-compress option to defeat compression. llvm-svn: 17565
* Stop propagating method names that violate the coding standardReid Spencer2004-11-051-1/+1
| | | | llvm-svn: 17498
* Hrm, if there is an error loading a file, try printing a message so theChris Lattner2004-09-271-2/+10
| | | | | | user knows that... llvm-svn: 16524
* Excise the -L option since llvm-link should not do library searches. ItReid Spencer2004-09-121-42/+11
| | | | | | just links bytecode files together. llvm-svn: 16303
* Excise dependent library linking at Chris' request. llvm-link is intendedReid Spencer2004-09-121-105/+0
| | | | | | | to provide only the simplest linking of LLVM modules without trying to be complete. Dependent library linking will be added to gccld or its successor llvm-svn: 16302
* Squelch compilation warnings on SparcMisha Brukman2004-09-121-2/+2
| | | | llvm-svn: 16301
* Implement dependent library processing and search paths for them.Reid Spencer2004-09-111-17/+144
| | | | llvm-svn: 16287
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-291-2/+2
| | | | llvm-svn: 16091
* Add #include <iostream> since Value.h does not include it any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14623
* Linker.h moved to include/llvm/SupportMisha Brukman2004-06-231-1/+1
| | | | llvm-svn: 14351
* Header file movedChris Lattner2004-05-271-1/+1
| | | | llvm-svn: 13813
* Make sure to print a stack trace whenever an error signal is delivered to theChris Lattner2004-02-191-0/+1
| | | | | | tool. llvm-svn: 11632
* Use getFileSize() instead of sys/stat.h directlyChris Lattner2003-12-301-9/+2
| | | | llvm-svn: 10652
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+2
| | | | llvm-svn: 9903
* Removed extraneous comment line.John Criswell2003-10-201-1/+0
| | | | llvm-svn: 9308
* Added copyright header to all C++ source files.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9291
* Fix grammar.Misha Brukman2003-10-101-1/+1
| | | | llvm-svn: 9026
OpenPOWER on IntegriCloud