Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clean up #includes. | Chris Lattner | 2009-08-23 | 1 | -8/+4 |
| | | | | llvm-svn: 79857 | ||||
* | Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other ↵ | Benjamin Kramer | 2009-08-23 | 1 | -39/+36 |
| | | | | | | minor tweaks. llvm-svn: 79847 | ||||
* | remove some uses of llvm/Support/Streams.h | Chris Lattner | 2009-08-23 | 1 | -45/+45 |
| | | | | llvm-svn: 79842 | ||||
* | Remove duplicated colons and spaces. | Benjamin Kramer | 2009-08-02 | 1 | -15/+15 |
| | | | | llvm-svn: 77892 | ||||
* | Sort list of targets in --version. | Daniel Dunbar | 2009-07-26 | 1 | -8/+11 |
| | | | | llvm-svn: 77127 | ||||
* | Add registered target list to --version output. | Daniel Dunbar | 2009-07-16 | 1 | -2/+20 |
| | | | | llvm-svn: 75889 | ||||
* | llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. | Torok Edwin | 2009-07-14 | 1 | -2/+2 |
| | | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640 | ||||
* | assert(0) -> LLVM_UNREACHABLE. | Torok Edwin | 2009-07-11 | 1 | -1/+1 |
| | | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379 | ||||
* | Convert more assert(0)+abort() -> LLVM_UNREACHABLE, | Torok Edwin | 2009-07-11 | 1 | -2/+2 |
| | | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363 | ||||
* | Add support for a character after a command line option. Like '-Os'. | Bill Wendling | 2009-04-29 | 1 | -0/+3 |
| | | | | llvm-svn: 70437 | ||||
* | Remove AllowInverse: it leaks memory and is not the right | Chris Lattner | 2009-04-08 | 1 | -21/+0 |
| | | | | | | abstraction for CommandLine. llvm-svn: 68588 | ||||
* | * Fixed spelling of `invertible' | Misha Brukman | 2009-04-01 | 1 | -2/+2 |
| | | | | | | * Simplified if statement llvm-svn: 68163 | ||||
* | move a large method out of line. | Chris Lattner | 2009-03-28 | 1 | -0/+19 |
| | | | | llvm-svn: 67892 | ||||
* | Improve -fno-opt style option processing to not require an extra | Mike Stump | 2009-02-02 | 1 | -19/+2 |
| | | | | | | | option to make the -fno- form on the option. We also document the new form in the CommandLine documentation. llvm-svn: 63559 | ||||
* | Add opposite_of and inverse_opt to support -fno- style options. This | Mike Stump | 2009-01-30 | 1 | -1/+21 |
| | | | | | | is necessary for eventual gcc commmand line compatibility. llvm-svn: 63384 | ||||
* | Clarify comment. | Mikhail Glushenkov | 2009-01-28 | 1 | -1/+6 |
| | | | | llvm-svn: 63171 | ||||
* | Mimic gcc behaviour with regard to response files. | Mikhail Glushenkov | 2009-01-21 | 1 | -16/+15 |
| | | | | llvm-svn: 62688 | ||||
* | Support for multi-valued options in CommandLine | Mikhail Glushenkov | 2009-01-16 | 1 | -4/+40 |
| | | | | | | | Makes possible to specify options that take multiple arguments (a-la -sectalign on Darwin). See documentation for details. llvm-svn: 62372 | ||||
* | Tweak --version to include the date and time. | Steve Naroff | 2008-12-23 | 1 | -0/+1 |
| | | | | llvm-svn: 61378 | ||||
* | remove unused var | Nuno Lopes | 2008-12-09 | 1 | -2/+0 |
| | | | | llvm-svn: 60770 | ||||
* | Fix command-line option printing to print two spaces where needed, | Dan Gohman | 2008-10-14 | 1 | -1/+1 |
| | | | | | | | | | instead of requiring all "short description" strings to begin with two spaces. This makes these strings less mysterious, and it fixes some cases where short description strings mistakenly did not begin with two spaces. llvm-svn: 57521 | ||||
* | Give a proper error message when a command line option is defined more than | Matthijs Kooijman | 2008-05-30 | 1 | -1/+1 |
| | | | | | | | once (ie, at two different places in the source, not two times on the commandline). llvm-svn: 51771 | ||||
* | Fix more -Wshorten-64-to-32 warnings. | Evan Cheng | 2008-05-05 | 1 | -28/+28 |
| | | | | llvm-svn: 50659 | ||||
* | Add support for response files to the CommandLine library. | Mikhail Glushenkov | 2008-04-28 | 1 | -23/+79 |
| | | | | llvm-svn: 50355 | ||||
* | Add explicit keywords. | Dan Gohman | 2008-03-25 | 1 | -1/+1 |
| | | | | llvm-svn: 48801 | ||||
* | A quick nm audit turned up several fixed tables and objects that were | Dan Gohman | 2008-03-25 | 1 | -1/+1 |
| | | | | | | | marked read-write. Use const so that they can be allocated in a read-only segment. llvm-svn: 48800 | ||||
* | Fix a bug that caused opt and other tools to silently ignore | Dan Gohman | 2008-02-23 | 1 | -1/+1 |
| | | | | | | invalid command-line options. llvm-svn: 47523 | ||||
* | Add 'sink' cmdline option. Patch by Mikhail Glushenkov! | Anton Korobeynikov | 2008-02-20 | 1 | -6/+18 |
| | | | | llvm-svn: 47377 | ||||
* | Unbreak build with gcc 4.3: provide missed includes and silence most ↵ | Anton Korobeynikov | 2008-02-20 | 1 | -0/+1 |
| | | | | | | annoying warnings. llvm-svn: 47367 | ||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | llvm-svn: 45418 | ||||
* | Pass argc by value, not by reference, since it isn't modified. | Dan Gohman | 2007-10-09 | 1 | -1/+1 |
| | | | | llvm-svn: 42788 | ||||
* | Move the space in overview output for commands out of each of the | Dan Gohman | 2007-10-08 | 1 | -1/+1 |
| | | | | | | commands and into the common code. llvm-svn: 42752 | ||||
* | Make tail merging the default, except on powerPC. There was no prior art | Dale Johannesen | 2007-05-22 | 1 | -0/+18 |
| | | | | | | | for a target-dependent default with a command-line override; this way should be generally usable. llvm-svn: 37285 | ||||
* | improve the patch for PR1318 to also support grouped options with custom | Chris Lattner | 2007-04-12 | 1 | -7/+12 |
| | | | | | | | | | handlers (like the pass list). My previous fix only supported *new* command line options, not additions to old ones. This fixes test/Feature/load_module.ll llvm-svn: 35935 | ||||
* | Fix PR1318 by reacting appropriately to a mutating option list. | Chris Lattner | 2007-04-11 | 1 | -0/+14 |
| | | | | llvm-svn: 35905 | ||||
* | Fix a bug in my earlier commit which exposed positional options backwards. | Chris Lattner | 2007-04-07 | 1 | -3/+9 |
| | | | | | | This fixes llvm-ar. llvm-svn: 35727 | ||||
* | rearchitect the registration mechanism used by the command line option stuff. | Chris Lattner | 2007-04-06 | 1 | -65/+84 |
| | | | | | | | | | | This dramatically reduce the amount of memory allocated by the commandline stuff at static init time, changing it to build local data structures when ParseCommandLineOptions is called. In a dummy empty program that links some llvm libraries, this reduces the number of malloc'd bytes from 4864 to 3360 on entry to main. Most of that memory is now allocated by non-commandline related stuff. llvm-svn: 35701 | ||||
* | remove the dead removeArgument method, rename Options to OptionsMap. | Chris Lattner | 2007-04-05 | 1 | -61/+30 |
| | | | | llvm-svn: 35690 | ||||
* | Add PrintVersionMessage() that tools can use to print version number | Devang Patel | 2007-02-01 | 1 | -3/+11 |
| | | | | | | without exiting program. llvm-svn: 33737 | ||||
* | Don't use <sstream> in Streams.h but <iosfwd> instead. | Bill Wendling | 2006-12-07 | 1 | -0/+1 |
| | | | | llvm-svn: 32340 | ||||
* | Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are | Bill Wendling | 2006-12-07 | 1 | -47/+47 |
| | | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298 | ||||
* | Removed #include <iostream> and replace with llvm_* streams. | Bill Wendling | 2006-11-26 | 1 | -34/+34 |
| | | | | llvm-svn: 31927 | ||||
* | avoid a ctor/dtor issue with the ProgramName global. | Chris Lattner | 2006-10-13 | 1 | -3/+9 |
| | | | | llvm-svn: 30925 | ||||
* | shrink anon-ns and mark stuff static. No functionality changes | Chris Lattner | 2006-10-12 | 1 | -10/+11 |
| | | | | llvm-svn: 30922 | ||||
* | Fix more static dtor issues | Chris Lattner | 2006-10-04 | 1 | -58/+46 |
| | | | | llvm-svn: 30725 | ||||
* | Minor code cleanups | Chris Lattner | 2006-08-27 | 1 | -11/+10 |
| | | | | llvm-svn: 29917 | ||||
* | Add external definitions for commonly-used template specializations and add | Chris Lattner | 2006-08-27 | 1 | -7/+28 |
| | | | | | | | | anchor methods to others. This eliminates the vtable/template method bloat in .o files that defining a cl::opt used to impose (~4K per .o file for one cp::opt<unsigned>). llvm-svn: 29909 | ||||
* | Make the ProgramName variable a std::string so we can eliminate the path | Reid Spencer | 2006-08-23 | 1 | -26/+14 |
| | | | | | | | | | | | | | | portion fo the program name via sys::Path().getLast(). This makes error messages more readable since this is invariably used only in error messages. Instead of: /path/to/llvm/bin/directory/toolname: error message we will now get: toolname: error message Also, since we always have a program name (even if its defaulted), don't check to see if it is set or not when generating error messages. This eliminates a bunch of constant strings, saving a little under 1K of data. llvm-svn: 29842 | ||||
* | For PR797: | Reid Spencer | 2006-08-21 | 1 | -1/+1 |
| | | | | | | | | Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785 | ||||
* | If the Program name was NULL then all further output sent to std::cerr was | Jim Laskey | 2006-08-02 | 1 | -1/+3 |
| | | | | | | suppressed. llvm-svn: 29477 |