04a42791609ea958bcb13c84e97118f1a3007eb9 |
|
21-Aug-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Reduce the amount of state in the Option class by relying on the data from OptTable::Info. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
4327557dfafe16c031691ed061f52a708e4c6b7a |
|
20-Aug-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Make Option non virtual. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
bfd7a525bcf372004787cb641b8c1566b9e8aba5 |
|
01-May-2012 |
James Molloy <james.molloy@arm.com> |
Unify Options.td and CC1Options.td, in a first step towards unifying the serialization logic in Frontend and Driver. Reviewed by Eric, Doug and Chandler, and here: http://llvm.org/reviews/r/7/ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155916 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
548f6c8e8010b181cb151df92f0a989363cb993e |
|
23-Sep-2011 |
David Blaikie <dblaikie@gmail.com> |
More missing header inclusions from llvm_unreachable migration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
b219cfc4d75f0a03630b7c4509ef791b7e97b2c8 |
|
23-Sep-2011 |
David Blaikie <dblaikie@gmail.com> |
Switch assert(0/false) llvm_unreachable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
5f9e272e632e951b1efe824cd16acb4d96077930 |
|
23-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports them into the clang namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
fc8f0e14ad142ed811e90fbd9a30e419e301c717 |
|
15-Apr-2011 |
Chris Lattner <sabre@nondot.org> |
fix a bunch of comment typos found by codespell. Patch by Luis Felipe Strano Moraes! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
3fdcc6fb12d7cf38d2a3111736f80f0dd55447b4 |
|
31-Dec-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Remove stray emacs mode markers in all these files that was causing emacs to open them in fundamental-mode instead of c++-mode. Also twiddle whitespace for consistency in ToolChains.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122646 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
9d520c5ae802fc175c61032b289ddd6968e6ddd2 |
|
11-Oct-2010 |
Axel Naumann <Axel.Naumann@cern.ch> |
Declare argv parameters as const char* const* instead of to char** to clarify that they are not modified, and to allow for string literals as arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
caeed1d3a5b366ae8fda5dda9bddc7bbb859c41f |
|
13-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/OptParser: Add a NoForward flag to prevent forwarding certain options to GCC. - Mark -Xclang and -mlinker-version= with it for now, although I am sure there are more. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111005 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
3177aae51a21f61ab483c52f97124bdb707da7f1 |
|
16-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy Straszheim! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106113 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
785e7963343c91c16e6d7c8f301eee145d06da5b |
|
12-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Change OptTable::ParseArg to take any ArgList. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
532c1ec307b8689e95896a11ce5ae4661fa9e5d3 |
|
10-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Eliminate Arg subclasses, which are now unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105762 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
e375c4a02ac6e18b166a067b8226e15a1ab009e7 |
|
10-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Keep the rendering style in the option, instead of as part of the Arg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105761 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
4465a776a56de81211ae4672e5782c6bef075135 |
|
10-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Change Arg to just hold the values directly, instead of implicitly deriving them from the Arg type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
bbd2a045871c1acff39c43dffd346adbb1b2dde5 |
|
20-Mar-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Allow Render{Separate,Joined} option flags on JoinedOrSeparate option types. Also, simplify/fix SeparateArg::render with forced join. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
2658f05caf1c1d86608a46ebc7be0b3bb21fef2a |
|
04-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
OptTable: Allow option groups to be used to define "help groups", which will collate the options inside that group. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90592 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
9a242512a8b319cc4df7d050166a1c65bf66abeb |
|
04-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
OptParser: Add HelpHidden flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
60e107fb86132fea75b886d2259f4c220334bc5e |
|
03-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add OptTable::PrintHelp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
847abaa62883b6c20005bdd3346ebbd44e46dbac |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Factor out OptTable::ParseArgs, for parsing an entire argument vector. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
a0289fda5b5d67ad49596a5e1f62e1f9db497d06 |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Take option ID for {Input,Unknown}Option, to drop dependency on actual options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
9e1f98260a1842df4bb8e6de0b592a1622dcfdc0 |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Introduce OptSpecifier class for protecting access to an option id. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
27e738d0d3f781672a5999d2a9e2827b00a97d0c |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Split OptTable out into OptTable.{h,cpp} git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89283 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
1ce9cf06b6618b5a1e9d96995f914f48fe92bec6 |
|
18-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Make MSVC happy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89247 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
a79a2b5bf23d1422eed9be3793186ebbba7532ec |
|
18-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Rework OptTable to have no dependency on the options it manages. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89234 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
a4f64805e032fa6a669434ca3f9c04b02f1bbd97 |
|
18-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Switch Options.def to storing flags as a bitmask (instead of mangled into a string). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
1eb4433ac451dc16f4133a88af2d002ac26c58ef |
|
09-Sep-2009 |
Mike Stump <mrs@apple.com> |
Remove tabs, and whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
47393ba7caff1db4f90f57db83a2dfcf373d79d3 |
|
13-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Explicitly initialize the options array, MinGW's gcc 4.3.5 appears to have a bug in array value-initialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75518 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
1e23f5f963dd6a3cee43ace77578161798e41e2d |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add 'q' flag for options which shouldn't be reported as unused. - <rdar://problem/6756295> warning about '-dynamic' argument unused during compilation seems incorrect git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68535 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
4ae24e7f118f500994772cb051be2e3343b68c1d |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix a parsing bug where some options were matched 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68525 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
febdf7d3858539a3533895bdeb3bd5c083fb087a |
|
31-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add OptTable::getOptionKind. Also, removed default value for getOptionMetaVar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68146 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
c0d12e93ee244534147960334c095a6d6510d0ae |
|
31-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add extra parameters for help text to option definitions. - Currently unused. And yes, now may be about the time I want a TableGen backend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
f6dd66b7b80e2fb42628df2593b3948149a53a5f |
|
25-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Replace Option::ForwardToGCC by Option::DriverOption (which matches the flag in Options.def). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
f3cad36e59a41b5767fe662b5ac8911ee174b801 |
|
25-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Prep for tool chain specific argument translation. - 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
cf51ece8f1dc5e34338c03c1fdf7c105ebdbf7f5 |
|
25-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
gcc 4.3 finds my use of ^ suspicious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67673 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
7547f74b52aa51f9a55105bd95cd25bcfa428e5b |
|
23-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Make argument parsing fast. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67564 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
8a7e66d029d1cb485fd191624c5718c4919cd611 |
|
23-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix off by one in computation of first searchable option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67552 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
b355692a7f9349e9af747b6b444ce56e9228a696 |
|
23-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Check that options are ordered properly (outside of Release-Asserts mode). Also, avoid searching through option groups (which will never match). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67548 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
b0c4df5c4df69a003f26b378eb95961bc7c486e5 |
|
23-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Implement 'missing argument' error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67490 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
6d954d788925e6b80077ef379c8eeb028cc31d0e |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add "d" flag to Options.def for options which are completely 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67181 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
9aecfabe3f2821c58421df1ef7dfff7b54f11b74 |
|
12-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Value initialization is nicer than memset. - Who wouldn't want correctness to hang critically on two easily ignored characters? Thanks Doug! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
ba7db7d8b4ea8f9c24aba8c75a228ffc0857964e |
|
12-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Drop some unnecessary uses of clang namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
a948045b43e9f102533f85a1b64ddd26c0077e8a |
|
12-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: '-' is parsed as an input. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
644eade617a4e2e665455accf18c455e8d025699 |
|
12-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add Option flags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
b349fccc4a6e416483b0b36b4f74e39787c62344 |
|
12-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Tweak option naming/def: - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
e1495eced887466e235f6a034953adf5ee1e14e6 |
|
12-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Reorder arguments in Options.def so option name is first. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66759 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
bbf842bb27c6e964359111b6a72a5f948c56fc41 |
|
05-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Implement Option::accept methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
5cc8c639cf62cd154cce4ac036a0f19ae2855056 |
|
05-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix off by one in ParseOneArg; this code is ugly but will be replaced anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
70a0dbbfbd933c80722549fef2d56de85c32d752 |
|
04-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add OptTable::ParseOneArg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66090 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
30b055f553ffa50ae5413ecf0f0ac8061c58f475 |
|
04-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Option's need to know their ID. - Also, add Input and Unknown opts to OptTable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66079 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
0f9098e093089e935066729ea06bc86c23d9a432 |
|
04-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add Option flags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66067 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|
2c6f6f3c170502c5b810102cf85f05732a2aa9d0 |
|
04-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: More Option implementation. - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66028 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/OptTable.cpp
|