summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dis
Commit message (Collapse)AuthorAgeFilesLines
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-6/+5
| | | | llvm-svn: 76070
* 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-30/+25
| | | | | | | | 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
* 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-1/+3
| | | | | | | | | | 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
* disable exports from a bunch more tools, those without plugins.Chris Lattner2009-02-261-0/+3
| | | | llvm-svn: 65558
* Move Print*Pass to use raw_ostream.Daniel Dunbar2008-10-221-1/+2
| | | | llvm-svn: 57946
* Privatize PrintModulePass and PrintFunctionPass and addDaniel Dunbar2008-10-211-1/+1
| | | | | | | createPrintModulePass and createPrintFunctionPass. - So clients who compile w/o RTTI can use them. llvm-svn: 57933
* Initial support for the CMake build system.Oscar Fuentes2008-09-221-0/+6
| | | | llvm-svn: 56419
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* remove attributions from tools/utils makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45414
* 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-4/+4
| | | | | | 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-7/+4
| | | | llvm-svn: 36900
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-062-21/+9
| | | | llvm-svn: 36868
* simplify codeChris Lattner2007-05-061-6/+2
| | | | llvm-svn: 36837
* Switch the bitcode reader interface to take a MemoryBuffer instead of knowingChris Lattner2007-04-291-6/+24
| | | | | | | | | | | | | | anything about disk I/O itself. This greatly simplifies its interface - eliminating the need for the ReaderWrappers.cpp file. This adds a new option to llvm-dis (-bitcode) which instructs it to read the input file as bitcode. Until/unless the bytecode reader is taught to read from MemoryBuffer, there is no way to handle stdin reading without it. I don't plan to switch the bytecode reader over, I'd rather delete it :), so the option will stay around temporarily. llvm-svn: 36554
* don't break reading from stdinChris Lattner2007-04-221-2/+3
| | | | llvm-svn: 36336
* teach llvm-dis to read bitcode filesChris Lattner2007-04-222-4/+9
| | | | llvm-svn: 36334
* 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
* add an option for timing bc file reading.Chris Lattner2007-02-071-5/+12
| | | | llvm-svn: 33977
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-12/+12
| | | | | | 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/+3
| | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. llvm-svn: 32250
* Convert to using llvm streams instead of iostreams.Bill Wendling2006-11-281-10/+12
| | | | llvm-svn: 31989
* Switch to using llvm-config to buildChris Lattner2006-09-041-1/+1
| | | | llvm-svn: 30088
* Tools require EH for their top-level try blocks.Chris Lattner2006-07-071-0/+2
| | | | llvm-svn: 29035
* Use archive libraries instead of object files for VMCore, BCReader,Reid Spencer2006-06-011-1/+1
| | | | | | | BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate these changes. This was done to speed up link times. llvm-svn: 28610
* Remove trailing whitespaceMisha Brukman2005-04-221-4/+4
| | | | llvm-svn: 21428
* clean up commentsChris Lattner2005-01-291-3/+2
| | | | llvm-svn: 19920
* This has been deprecated for long enough, nuke it.Chris Lattner2005-01-291-9/+0
| | | | llvm-svn: 19919
* For PR351:Reid Spencer2004-12-301-64/+71
| | | | | | | | | | * 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
* Add LLVMbzip2 library, now required.Reid Spencer2004-11-251-1/+1
| | | | llvm-svn: 18255
* Fix usage of changed function prototypeReid Spencer2004-11-141-1/+1
| | | | llvm-svn: 17798
* Change Library Names Not To Conflict With Others When InstalledReid Spencer2004-10-271-1/+1
| | | | llvm-svn: 17286
* We're not doing automake any moreReid Spencer2004-10-221-650/+0
| | | | llvm-svn: 17168
* We won't use automakeReid Spencer2004-10-221-17/+0
| | | | llvm-svn: 17155
* Initial automake generated Makefile templateReid Spencer2004-10-181-0/+650
| | | | llvm-svn: 17136
* Update to reflect changes in Makefile rules.Reid Spencer2004-10-131-1/+1
| | | | llvm-svn: 16950
* Initial version of automake Makefile.am file.Reid Spencer2004-10-101-0/+17
| | | | llvm-svn: 16894
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | 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
* Add the LLVMsystem.a library as it is now used for operating systemReid Spencer2004-08-291-1/+1
| | | | | | independence of the tool. llvm-svn: 16092
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-291-2/+2
| | | | llvm-svn: 16091
* Eliminate more traces of the -c optionChris Lattner2004-06-071-14/+3
| | | | llvm-svn: 14049
* 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/+2
| | | | | | tool. llvm-svn: 11632
* Break a line that's over 80cols into two.Misha Brukman2004-02-131-1/+2
| | | | llvm-svn: 11423
* Do not advertise our -c option anymoreChris Lattner2004-02-131-1/+2
| | | | llvm-svn: 11413
* Mercilessly rip the cbackend out of llvm-dis. Leave a helpful error messageChris Lattner2004-02-132-18/+9
| | | | | | for those who have not heard the news. llvm-svn: 11412
* Change how we create the cwriter, and add a buttload of libraries that it nowChris Lattner2004-02-132-2/+2
| | | | | | needs. This will be fixed shortly llvm-svn: 11407
OpenPOWER on IntegriCloud