summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-as
Commit message (Collapse)AuthorAgeFilesLines
...
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-4/+1
| | | | | | | | | | | | | | | | 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
* eliminate the ostream version of CheckBitcodeOutputToConsole,Chris Lattner2009-08-231-1/+1
| | | | | | | change the raw_ostream one to take the raw_ostream byref instead of byptr. Prune #includes, eliminate a use of Streams.h llvm-svn: 79863
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-75/+51
| | | | | | | | | | | | | | | | 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
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-7/+6
| | | | 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-27/+21
| | | | | | | | 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
* switch the .ll parser into SMDiagnostic.Chris Lattner2009-07-021-2/+3
| | | | llvm-svn: 74734
* 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/+5
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* use TOOL_NO_EXPORTS, this shrinks the llvm-as binary from 1825296 to Chris Lattner2009-02-261-0/+3
| | | | | | 1662184 bytes (~10%) llvm-svn: 65551
* Reimplement the old and horrible bison parser for .ll files with a niceChris Lattner2009-01-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and clean recursive descent parser. This change has a couple of ramifications: 1. The parser code is about 400 lines shorter (in what we maintain, not including what is autogenerated). 2. The code should be significantly faster than the old code because we don't have to work around bison's poor handling of datatypes with ctors/dtors. This also makes the code much more resistant to memory leaks. 3. We now get caret diagnostics from the .ll parser, woo. 4. The actual diagnostics emited from the parser are completely different so a bunch of testcases had to be updated. 5. I now disallow "%ty = type opaque %ty = type i32". There was no good reason to support this, it was just an accident of the old implementation. I have no reason to think that anyone is actually using this. 6. The syntax for sticking a global variable has changed to make it unambiguous. I don't think anyone is depending on this since only clang supports this and it is not solid yet, so I'm not worried about anything breaking. 7. This gets rid of the last use of bison, and along with it the .cvs files. I'll prune this from the makefiles as a subsequent commit. There are a few minor cleanups that can be done after this commit (suggestions welcome!) but this passes dejagnu testing and is ready for its time in the limelight. llvm-svn: 61558
* Initial support for the CMake build system.Oscar Fuentes2008-09-221-0/+6
| | | | llvm-svn: 56419
* Add -disable-output option.Devang Patel2008-02-211-2/+6
| | | | llvm-svn: 47422
* 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-1/+1
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-062-20/+5
| | | | llvm-svn: 36868
* link in bitwriter libraryChris Lattner2007-04-221-1/+1
| | | | llvm-svn: 36335
* add a temporary -bitcode option, which instructs llvm-as to produce a ↵Chris Lattner2007-04-221-2/+11
| | | | | | bitcode file instead of a bytecode file llvm-svn: 36333
* 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-15/+15
| | | | | | 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-11/+12
| | | | | | | 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
* Switch to using llvm-config to select components to link in.Chris Lattner2006-09-041-2/+2
| | | | llvm-svn: 30085
* For PR797:Reid Spencer2006-08-181-5/+3
| | | | | | | | | | | | | Rid the Assembly Parser of exceptions. This is a really gross hack but it will do until the Assembly Parser is re-written as a recursive descent. The basic premise is that wherever the old "ThrowException" function was called (new name: GenerateError) we set a flag (TriggerError). Every production checks that flag and calls YYERROR if it is set. Additionally, each call to ThrowException in the grammar is replaced with GEN_ERROR which calls GenerateError and then YYERROR immediately. This prevents the remaining production from continuing after an error condition. llvm-svn: 29763
* Tools require EH for their top-level try blocks.Chris Lattner2006-07-071-0/+1
| | | | llvm-svn: 29035
* Change the verifier to never throw an exception. Instead verifyModule ↵Chris Lattner2006-07-061-8/+8
| | | | | | canoptionally return the string error, which is an easier api for clients touse anyway. llvm-svn: 29017
* 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
* Silly cleanupChris Lattner2006-05-291-1/+1
| | | | llvm-svn: 28544
* There are still uses for spaces in Makefiles -- to make text line up together,Misha Brukman2005-04-241-2/+2
| | | | | | regardless of the tab size/stop settings on the developer side llvm-svn: 21499
* Remove trailing whitespaceMisha Brukman2005-04-221-10/+10
| | | | 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-15/+16
| | | | llvm-svn: 19751
* Prevent output of bytecode to std::cout unless the --force flag is given.Reid Spencer2005-01-021-1/+4
| | | | | | This prevents bytecode splats with usage like: cat file.ll | llvm-as - llvm-svn: 19239
* Fix typo 'ompress' => 'compress'.Jeff Cohen2005-01-011-1/+1
| | | | llvm-svn: 19232
* For PR351:Reid Spencer2004-12-301-2/+9
| | | | | | | | | | * 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/+2
| | | | llvm-svn: 18255
* Fix usage of changed function prototypeReid Spencer2004-11-141-3/+4
| | | | llvm-svn: 17798
* Rename the option for defeating compression to be a little more specific.Reid Spencer2004-11-071-1/+1
| | | | llvm-svn: 17567
* Turn on compression by default.Reid Spencer2004-11-071-3/+3
| | | | | | Change --compress to --no-compress so compression can be turned off. llvm-svn: 17564
* Add support for compressed bytecodeReid Spencer2004-11-061-1/+4
| | | | llvm-svn: 17535
* 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
OpenPOWER on IntegriCloud