summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix some comments referring to std::cerr.Daniel Dunbar2009-08-031-1/+1
| | | | llvm-svn: 77931
* Remove duplicated colons and spaces.Benjamin Kramer2009-08-021-7/+7
| | | | llvm-svn: 77892
* Fix comment.Mikhail Glushenkov2009-06-171-2/+2
| | | | llvm-svn: 73601
* Add support for a character after a command line option. Like '-Os'.Bill Wendling2009-04-291-0/+23
| | | | llvm-svn: 70437
* Remove AllowInverse: it leaks memory and is not the rightChris Lattner2009-04-081-5/+1
| | | | | | abstraction for CommandLine. llvm-svn: 68588
* Use CHAR_BIT instead of hard-coding 8 in several places where itDan Gohman2009-04-011-2/+3
| | | | | | | is appropriate. This helps visually differentiate host-oriented calculations from target-oriented calculations. llvm-svn: 68227
* * Fixed spelling of `invertible'Misha Brukman2009-04-011-5/+2
| | | | | | * Simplified if statement llvm-svn: 68163
* Constify check. This fixes PR3900.Bill Wendling2009-03-291-1/+1
| | | | llvm-svn: 68013
* move a large method out of line.Chris Lattner2009-03-281-16/+2
| | | | llvm-svn: 67892
* Allow invertable -xno- style optins as well.Mike Stump2009-03-271-4/+8
| | | | llvm-svn: 67862
* Fix the Win32 VS2008 build:Sebastian Redl2009-03-191-2/+2
| | | | | | | | | | - Make type declarations match the struct/class keyword of the definition. - Move AddSignalHandler into the namespace where it belongs. - Correctly call functions from template base. - Some other small changes. With this patch, LLVM and Clang should build properly and with far less noise under VS2008. llvm-svn: 67347
* Improve -fno-opt style option processing to not require an extraMike Stump2009-02-021-34/+25
| | | | | | | 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-0/+33
| | | | | | is necessary for eventual gcc commmand line compatibility. llvm-svn: 63384
* Support for multi-valued options in CommandLineMikhail Glushenkov2009-01-161-2/+21
| | | | | | | Makes possible to specify options that take multiple arguments (a-la -sectalign on Darwin). See documentation for details. llvm-svn: 62372
* * Alphabetized system headers per the style guideMisha Brukman2009-01-021-3/+3
| | | | | | * Minor spacing and comment cleanups llvm-svn: 61590
* Silence a warning about "*/" outside a comment.Steve Naroff2008-05-201-1/+1
| | | | llvm-svn: 51287
* Remove warnings about unused parameters and shadowed variables.Bill Wendling2008-05-191-7/+7
| | | | llvm-svn: 51266
* Fix more -Wshorten-64-to-32 warnings.Evan Cheng2008-05-051-16/+18
| | | | llvm-svn: 50659
* Add support for response files to the CommandLine library.Mikhail Glushenkov2008-04-281-21/+23
| | | | llvm-svn: 50355
* Add explicit keywords.Dan Gohman2008-02-201-1/+1
| | | | llvm-svn: 47382
* Add 'sink' cmdline option. Patch by Mikhail Glushenkov!Anton Korobeynikov2008-02-201-1/+2
| | | | llvm-svn: 47377
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-291-2/+2
| | | | | | discussion of this change. Boy are my fingers tired. ;-) llvm-svn: 45411
* Remove an unnecessary friend declaration.Dan Gohman2007-10-091-1/+0
| | | | llvm-svn: 42805
* update prototype, fixing build errorChris Lattner2007-10-091-1/+1
| | | | llvm-svn: 42789
* Pass argc by value, not by reference, since it isn't modified.Dan Gohman2007-10-091-1/+1
| | | | llvm-svn: 42788
* Fix grammar in a comment.Dan Gohman2007-10-081-1/+1
| | | | llvm-svn: 42748
* Add explicit keywords.Dan Gohman2007-10-081-5/+5
| | | | llvm-svn: 42747
* Add explicit keywords.Dan Gohman2007-07-051-1/+1
| | | | llvm-svn: 37925
* Make tail merging the default, except on powerPC. There was no prior artDale Johannesen2007-05-221-0/+22
| | | | | | | 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-0/+5
| | | | | | | | | 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
* rearchitect the registration mechanism used by the command line option stuff.Chris Lattner2007-04-061-19/+37
| | | | | | | | | | 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
* Switch some vectors to smallvectors. This reduces amount of malloc'dChris Lattner2007-04-061-6/+8
| | | | | | | memory that occurs before main starts from 5104 to 4864 bytes with a dummy example app. llvm-svn: 35698
* Eliminate unneeded virtual methodsChris Lattner2007-04-061-49/+44
| | | | llvm-svn: 35697
* eliminate a virtual methodChris Lattner2007-04-051-42/+39
| | | | llvm-svn: 35691
* remove the dead removeArgument method, rename Options to OptionsMap.Chris Lattner2007-04-051-1/+0
| | | | llvm-svn: 35690
* Add PrintVersionMessage() that tools can use to print version numberDevang Patel2007-02-011-0/+1
| | | | | | without exiting program. llvm-svn: 33737
* simplify trivial functionChris Lattner2006-10-121-5/+1
| | | | llvm-svn: 30924
* Add external definitions for commonly-used template specializations and addChris Lattner2006-08-271-2/+37
| | | | | | | | 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
* Add an out-of-line virtual method to provide a home for the cl::option class.Chris Lattner2006-07-181-0/+3
| | | | llvm-svn: 29191
* Make it possible to override the standard version printer. Not all toolsReid Spencer2006-06-051-0/+7
| | | | | | | | | 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
* Don't use old-style casts. This prevents compiler warnings when CommandLine.hReid Spencer2006-05-121-2/+2
| | | | | | | is used in projects that have stricter warning control than LLVM. This also helps us find casts more easily if we ever need to. llvm-svn: 28263
* Move the END_WITH_NULL marker. Vladimir suggests that this works better withChris Lattner2005-10-241-7/+2
| | | | | | GCC 4.1. I tried it with 4.0 and 3.3 and it seems fine. llvm-svn: 23957
* Work around GCC's dislike of attributes on function definitions.Jeff Cohen2005-10-231-1/+6
| | | | llvm-svn: 23896
* When a function takes a variable number of pointer arguments, with a zeroJeff Cohen2005-10-231-1/+2
| | | | | | | | | | | | | pointer marking the end of the list, the zero *must* be cast to the pointer type. An un-cast zero is a 32-bit int, and at least on x86_64, gcc will not extend the zero to 64 bits, thus allowing the upper 32 bits to be random junk. The new END_WITH_NULL macro may be used to annotate a such a function so that GCC (version 4 or newer) will detect the use of un-casted zero at compile time. llvm-svn: 23888
* Fix errors when compiling with -pedanticChris Lattner2005-10-141-5/+5
| | | | llvm-svn: 23719
* Change unsigned lng to unsigned.Jim Laskey2005-08-261-7/+7
| | | | llvm-svn: 23077
* Added cl::bits option type (bit vectors). See "Collecting options as a setJim Laskey2005-08-251-0/+182
| | | | | | of flags" in the Command Line doc. llvm-svn: 23067
* Eliminate tabs and trailing spaces.Jeff Cohen2005-07-271-1/+1
| | | | llvm-svn: 22520
* Make sure a variable is initialized before use to clean up a warning fromReid Spencer2005-06-181-1/+2
| | | | | | GCC 4.0.0 in release build. llvm-svn: 22248
* silence a huge number of bogus warnings with GCC 4 on Reid's tester.Chris Lattner2005-06-171-1/+2
| | | | llvm-svn: 22244
OpenPOWER on IntegriCloud