summaryrefslogtreecommitdiff
path: root/lib/Driver/OptTable.cpp
Commit message (Collapse)AuthorAge
...
* Driver: Check that options are ordered properly (outside ofDaniel Dunbar2009-03-23
| | | | | | | | | 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
* Driver: Implement 'missing argument' error.Daniel Dunbar2009-03-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67490 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add "d" flag to Options.def for options which are completelyDaniel Dunbar2009-03-18
| | | | | | | | | | | | | 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
* Driver: Value initialization is nicer than memset.Daniel Dunbar2009-03-12
| | | | | | | | | | - 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
* Driver: Drop some unnecessary uses of clang namespace.Daniel Dunbar2009-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66813 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: '-' is parsed as an input.Daniel Dunbar2009-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66784 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add Option flags.Daniel Dunbar2009-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66774 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Tweak option naming/def:Daniel Dunbar2009-03-12
| | | | | | | | | | | | - 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
* Driver: Reorder arguments in Options.def so option name is first.Daniel Dunbar2009-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66759 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Implement Option::accept methods.Daniel Dunbar2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66106 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Fix off by one in ParseOneArg; this code is ugly but will beDaniel Dunbar2009-03-04
| | | | | | | replaced anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66101 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add OptTable::ParseOneArg.Daniel Dunbar2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66090 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Option's need to know their ID.Daniel Dunbar2009-03-04
| | | | | | | - 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
* Driver: Add Option flags.Daniel Dunbar2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66067 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: More Option implementation.Daniel Dunbar2009-03-04
- 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