summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin2009-07-141-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 Edwin2009-07-111-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 Edwin2009-07-111-2/+2
| | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363
* Add support for a character after a command line option. Like '-Os'.Bill Wendling2009-04-291-0/+3
| | | | llvm-svn: 70437
* Remove AllowInverse: it leaks memory and is not the rightChris Lattner2009-04-081-21/+0
| | | | | | abstraction for CommandLine. llvm-svn: 68588
* * Fixed spelling of `invertible'Misha Brukman2009-04-011-2/+2
| | | | | | * Simplified if statement llvm-svn: 68163
* move a large method out of line.Chris Lattner2009-03-281-0/+19
| | | | llvm-svn: 67892
* Improve -fno-opt style option processing to not require an extraMike Stump2009-02-021-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. ThisMike Stump2009-01-301-1/+21
| | | | | | is necessary for eventual gcc commmand line compatibility. llvm-svn: 63384
* Clarify comment.Mikhail Glushenkov2009-01-281-1/+6
| | | | llvm-svn: 63171
* Mimic gcc behaviour with regard to response files.Mikhail Glushenkov2009-01-211-16/+15
| | | | llvm-svn: 62688
* Support for multi-valued options in CommandLineMikhail Glushenkov2009-01-161-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 Naroff2008-12-231-0/+1
| | | | llvm-svn: 61378
* remove unused varNuno Lopes2008-12-091-2/+0
| | | | llvm-svn: 60770
* Fix command-line option printing to print two spaces where needed,Dan Gohman2008-10-141-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 thanMatthijs Kooijman2008-05-301-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 Cheng2008-05-051-28/+28
| | | | llvm-svn: 50659
* Add support for response files to the CommandLine library.Mikhail Glushenkov2008-04-281-23/+79
| | | | llvm-svn: 50355
* Add explicit keywords.Dan Gohman2008-03-251-1/+1
| | | | llvm-svn: 48801
* A quick nm audit turned up several fixed tables and objects that wereDan Gohman2008-03-251-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 ignoreDan Gohman2008-02-231-1/+1
| | | | | | invalid command-line options. llvm-svn: 47523
* Add 'sink' cmdline option. Patch by Mikhail Glushenkov!Anton Korobeynikov2008-02-201-6/+18
| | | | llvm-svn: 47377
* Unbreak build with gcc 4.3: provide missed includes and silence most ↵Anton Korobeynikov2008-02-201-0/+1
| | | | | | annoying warnings. llvm-svn: 47367
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Pass argc by value, not by reference, since it isn't modified.Dan Gohman2007-10-091-1/+1
| | | | llvm-svn: 42788
* 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
* Make tail merging the default, except on powerPC. There was no prior artDale Johannesen2007-05-221-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 customChris Lattner2007-04-121-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 Lattner2007-04-111-0/+14
| | | | llvm-svn: 35905
* Fix a bug in my earlier commit which exposed positional options backwards.Chris Lattner2007-04-071-3/+9
| | | | | | This fixes llvm-ar. llvm-svn: 35727
* rearchitect the registration mechanism used by the command line option stuff.Chris Lattner2007-04-061-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 Lattner2007-04-051-61/+30
| | | | llvm-svn: 35690
* Add PrintVersionMessage() that tools can use to print version numberDevang Patel2007-02-011-3/+11
| | | | | | without exiting program. llvm-svn: 33737
* Don't use <sstream> in Streams.h but <iosfwd> instead.Bill Wendling2006-12-071-0/+1
| | | | llvm-svn: 32340
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-47/+47
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Removed #include <iostream> and replace with llvm_* streams.Bill Wendling2006-11-261-34/+34
| | | | llvm-svn: 31927
* avoid a ctor/dtor issue with the ProgramName global.Chris Lattner2006-10-131-3/+9
| | | | llvm-svn: 30925
* shrink anon-ns and mark stuff static. No functionality changesChris Lattner2006-10-121-10/+11
| | | | llvm-svn: 30922
* Fix more static dtor issuesChris Lattner2006-10-041-58/+46
| | | | llvm-svn: 30725
* Minor code cleanupsChris Lattner2006-08-271-11/+10
| | | | llvm-svn: 29917
* Add external definitions for commonly-used template specializations and addChris Lattner2006-08-271-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 pathReid Spencer2006-08-231-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 Spencer2006-08-211-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 wasJim Laskey2006-08-021-1/+3
| | | | | | suppressed. llvm-svn: 29477
* Add an out-of-line virtual method to provide a home for the cl::option class.Chris Lattner2006-07-181-0/+4
| | | | llvm-svn: 29191
* Print LLVM version info like this:Chris Lattner2006-07-061-5/+13
| | | | | | | | | | | | | | Low Level Virtual Machine (http://llvm.org/): llvm version 1.8cvs DEBUG build with assertions. instead of like this: Low Level Virtual Machine (llvm) 1.8cvs (see http://llvm.org/) ASSERTIONS ENABLED Also, add a place for vendor version info. llvm-svn: 29020
* Make it possible to override the standard version printer. Not all toolsReid Spencer2006-06-051-18/+29
| | | | | | | | | built with CommandLine.h will want the --version option to report that the tool belongs to LLVM. To override simply pass a void func() to the cl::SetVersionPrinter() function and that void func() will be called when it is time to print the version information. llvm-svn: 28687
* Fix PR743: emit -help output of a tool to cout, not cerr.Chris Lattner2006-04-281-20/+20
| | | | llvm-svn: 28010
* Add support for programs with a null argv[0]Chris Lattner2006-01-171-10/+24
| | | | llvm-svn: 25379
* MERRY CHRISTMAS EVERYONE!!! (what better way to spend christmas thanDuraid Madina2005-12-261-0/+1
| | | | | | | to try building LLVM on HP-UX! (the Right Way seems to be to tear out the ancient STL that HP ship and use http://incubator.apache.org/stdcxx/ ) llvm-svn: 25012
OpenPOWER on IntegriCloud