Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove stray emacs mode markers in all these files that was causing emacs to | Nick Lewycky | 2010-12-31 | 1 | -1/+1 |
| | | | | | | | open them in fundamental-mode instead of c++-mode. Also twiddle whitespace for consistency in ToolChains.cpp. llvm-svn: 122646 | ||||
* | Declare argv parameters as const char* const* instead of to char** to ↵ | Axel Naumann | 2010-10-11 | 1 | -1/+2 |
| | | | | | | clarify that they are not modified, and to allow for string literals as arguments. llvm-svn: 116200 | ||||
* | Driver/OptParser: Add a NoForward flag to prevent forwarding certain options to | Daniel Dunbar | 2010-08-13 | 1 | -0/+2 |
| | | | | | | | | GCC. - Mark -Xclang and -mlinker-version= with it for now, although I am sure there are more. llvm-svn: 111005 | ||||
* | Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy ↵ | Daniel Dunbar | 2010-06-16 | 1 | -1/+2 |
| | | | | | | Straszheim! llvm-svn: 106113 | ||||
* | Driver: Change OptTable::ParseArg to take any ArgList. | Daniel Dunbar | 2010-06-11 | 1 | -1/+1 |
| | | | | llvm-svn: 105839 | ||||
* | Driver: Eliminate Arg subclasses, which are now unnecessary. | Daniel Dunbar | 2010-06-09 | 1 | -2/+2 |
| | | | | llvm-svn: 105762 | ||||
* | Driver: Keep the rendering style in the option, instead of as part of the Arg. | Daniel Dunbar | 2010-06-09 | 1 | -2/+2 |
| | | | | llvm-svn: 105761 | ||||
* | Driver: Change Arg to just hold the values directly, instead of implicitly | Daniel Dunbar | 2010-06-09 | 1 | -2/+2 |
| | | | | | | deriving them from the Arg type. llvm-svn: 105760 | ||||
* | Driver: Allow Render{Separate,Joined} option flags on JoinedOrSeparate ↵ | Daniel Dunbar | 2010-03-20 | 1 | -2/+4 |
| | | | | | | | | option types. Also, simplify/fix SeparateArg::render with forced join. llvm-svn: 99022 | ||||
* | OptTable: Allow option groups to be used to define "help groups", which will | Daniel Dunbar | 2009-12-04 | 1 | -20/+61 |
| | | | | | | collate the options inside that group. llvm-svn: 90592 | ||||
* | OptParser: Add HelpHidden flag. | Daniel Dunbar | 2009-12-04 | 1 | -1/+5 |
| | | | | llvm-svn: 90591 | ||||
* | Add OptTable::PrintHelp. | Daniel Dunbar | 2009-12-03 | 1 | -0/+75 |
| | | | | llvm-svn: 90420 | ||||
* | Factor out OptTable::ParseArgs, for parsing an entire argument vector. | Daniel Dunbar | 2009-11-19 | 1 | -0/+35 |
| | | | | llvm-svn: 89327 | ||||
* | Driver: Take option ID for {Input,Unknown}Option, to drop dependency on ↵ | Daniel Dunbar | 2009-11-19 | 1 | -5/+4 |
| | | | | | | actual options. llvm-svn: 89312 | ||||
* | Driver: Introduce OptSpecifier class for protecting access to an option id. | Daniel Dunbar | 2009-11-19 | 1 | -0/+4 |
| | | | | llvm-svn: 89310 | ||||
* | Driver: Split OptTable out into OptTable.{h,cpp} | Daniel Dunbar | 2009-11-19 | 1 | -32/+2 |
| | | | | llvm-svn: 89283 | ||||
* | Make MSVC happy. | Daniel Dunbar | 2009-11-18 | 1 | -12/+12 |
| | | | | llvm-svn: 89247 | ||||
* | Driver: Rework OptTable to have no dependency on the options it manages. | Daniel Dunbar | 2009-11-18 | 1 | -99/+67 |
| | | | | llvm-svn: 89234 | ||||
* | Driver: Switch Options.def to storing flags as a bitmask (instead of mangled | Daniel Dunbar | 2009-11-18 | 1 | -25/+37 |
| | | | | | | into a string). llvm-svn: 89212 | ||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -6/+6 |
| | | | | llvm-svn: 81346 | ||||
* | Explicitly initialize the options array, MinGW's gcc 4.3.5 appears to have a bug | Daniel Dunbar | 2009-07-13 | 1 | -1/+5 |
| | | | | | | in array value-initialization. llvm-svn: 75518 | ||||
* | Driver: Add 'q' flag for options which shouldn't be reported as unused. | Daniel Dunbar | 2009-04-07 | 1 | -0/+1 |
| | | | | | | | - <rdar://problem/6756295> warning about '-dynamic' argument unused during compilation seems incorrect llvm-svn: 68535 | ||||
* | Driver: Fix a parsing bug where some options were matched | Daniel Dunbar | 2009-04-07 | 1 | -8/+15 |
| | | | | | | | | | incorrectly. I'm blanking on the smartest way to write this search, but we should just do the right thing when we move to TableGen. - <rdar://problem/6761194> [driver] -Wextra-tokens isn't parsed correctly llvm-svn: 68525 | ||||
* | Driver: Add OptTable::getOptionKind. | Daniel Dunbar | 2009-03-31 | 1 | -3/+5 |
| | | | | | | Also, removed default value for getOptionMetaVar. llvm-svn: 68146 | ||||
* | Driver: Add extra parameters for help text to option definitions. | Daniel Dunbar | 2009-03-31 | 1 | -4/+18 |
| | | | | | | | | - Currently unused. And yes, now may be about the time I want a TableGen backend. llvm-svn: 68139 | ||||
* | Driver: Replace Option::ForwardToGCC by Option::DriverOption (which | Daniel Dunbar | 2009-03-25 | 1 | -6/+1 |
| | | | | | | matches the flag in Options.def). llvm-svn: 67679 | ||||
* | Driver: Prep for tool chain specific argument translation. | Daniel Dunbar | 2009-03-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | - Lift ArgList to a base class for InputArgList and DerivedArgList. - This is not a great decomposition, but it does embed the translation into the type system, and keep things efficient for tool chains that don't want to do any translation. - No intended functionality change. Eventually I hope to get rid of tool chain specific translation and have each tool do the right thing, but for now this is the easiest way to match gcc precisely (which is good for testing). llvm-svn: 67676 | ||||
* | gcc 4.3 finds my use of ^ suspicious. | Daniel Dunbar | 2009-03-25 | 1 | -1/+1 |
| | | | | llvm-svn: 67673 | ||||
* | Driver: Make argument parsing fast. | Daniel Dunbar | 2009-03-23 | 1 | -13/+32 |
| | | | | | | | | | | | On a synthetic command line consisting of almost all defined options, this drops wall time from .00494 to .00336 and user time from .00258 to .00105. On the same benchmark, clang-driver is about 15% faster than the primary gcc driver and almost twice as fast as the gcc driver driver. llvm-svn: 67564 | ||||
* | Driver: Fix off by one in computation of first searchable option. | Daniel Dunbar | 2009-03-23 | 1 | -1/+1 |
| | | | | llvm-svn: 67552 | ||||
* | Driver: Check that options are ordered properly (outside of | Daniel Dunbar | 2009-03-23 | 1 | -5/+75 |
| | | | | | | | | Release-Asserts mode). Also, avoid searching through option groups (which will never match). llvm-svn: 67548 | ||||
* | Driver: Implement 'missing argument' error. | Daniel Dunbar | 2009-03-22 | 1 | -3/+10 |
| | | | | llvm-svn: 67490 | ||||
* | Driver: Add "d" flag to Options.def for options which are completely | Daniel Dunbar | 2009-03-18 | 1 | -3/+13 |
| | | | | | | | | | | | | handled by driver. - This is not very precise, we use it to drive the "forward-to-gcc" predicate, when trying to talk to a generic gcc tool. - Slightly better than what ccc was doing, and should be good enough. Platforms which want a robust driver should implement a proper tool chain. llvm-svn: 67181 | ||||
* | Driver: Value initialization is nicer than memset. | Daniel Dunbar | 2009-03-12 | 1 | -2/+1 |
| | | | | | | | | | - Who wouldn't want correctness to hang critically on two easily ignored characters? Thanks Doug! llvm-svn: 66819 | ||||
* | Driver: Drop some unnecessary uses of clang namespace. | Daniel Dunbar | 2009-03-12 | 1 | -1/+0 |
| | | | | llvm-svn: 66813 | ||||
* | Driver: '-' is parsed as an input. | Daniel Dunbar | 2009-03-12 | 1 | -2/+2 |
| | | | | llvm-svn: 66784 | ||||
* | Driver: Add Option flags. | Daniel Dunbar | 2009-03-12 | 1 | -3/+4 |
| | | | | llvm-svn: 66774 | ||||
* | Driver: Tweak option naming/def: | Daniel Dunbar | 2009-03-12 | 1 | -8/+8 |
| | | | | | | | | | | | - Use OPT_ prefix for ids. - Reference groups and aliases by shortend id (on the theory that this is more readable). - Rename the special option ids to more protected names. llvm-svn: 66767 | ||||
* | Driver: Reorder arguments in Options.def so option name is first. | Daniel Dunbar | 2009-03-12 | 1 | -6/+7 |
| | | | | llvm-svn: 66759 | ||||
* | Driver: Implement Option::accept methods. | Daniel Dunbar | 2009-03-04 | 1 | -1/+1 |
| | | | | llvm-svn: 66106 | ||||
* | Driver: Fix off by one in ParseOneArg; this code is ugly but will be | Daniel Dunbar | 2009-03-04 | 1 | -2/+2 |
| | | | | | | replaced anyway. llvm-svn: 66101 | ||||
* | Driver: Add OptTable::ParseOneArg. | Daniel Dunbar | 2009-03-04 | 1 | -0/+23 |
| | | | | llvm-svn: 66090 | ||||
* | Driver: Option's need to know their ID. | Daniel Dunbar | 2009-03-04 | 1 | -11/+18 |
| | | | | | | - Also, add Input and Unknown opts to OptTable. llvm-svn: 66079 | ||||
* | Driver: Add Option flags. | Daniel Dunbar | 2009-03-04 | 1 | -13/+6 |
| | | | | llvm-svn: 66067 | ||||
* | Driver: More Option implementation. | Daniel Dunbar | 2009-03-04 | 1 | -0/+117 |
- Add Options.def file, collects option information. - Actual option instantiation is handled lazily by OptTable to allow the driver to not need to instantiate all options. - cast<> support for Option, other minor tweaks. llvm-svn: 66028 |