summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/DriverOptions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update clang to match llvm r250901. OptTable constructor now takes an ↵Craig Topper2015-10-211-1/+1
| | | | | | ArrayRef. NFC llvm-svn: 250903
* Remove the SUPPORT_ALIASARGS defineHans Wennborg2013-08-011-2/+0
| | | | | | It is not needed after LLVM r187546. llvm-svn: 187550
* Option parsing tables: pick up AliasArgs from the OPTION macro.Hans Wennborg2013-07-311-2/+4
| | | | | | | | | This depends on LLVM r187537. The SUPPORT_ALIASARGS macro will be removed once all option parsing clients have been updated. llvm-svn: 187538
* Option parsing tables: remove some unnecessary #definesHans Wennborg2013-07-171-5/+2
| | | | | | Also make some strings static and add missing #undef's llvm-svn: 186518
* Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).Craig Topper2013-07-151-1/+2
| | | | llvm-svn: 186300
* [Driver] Refactor clang driver to use LLVM's Option libraryReid Kleckner2013-06-141-2/+3
| | | | | | | | | | | | | | | | | | The big changes are: - Deleting Driver/(Arg|Opt)* - Rewriting includes to llvm/Option/ and re-sorting - 'using namespace llvm::opt' in clang::driver - Fixing the autoconf build by adding option everywhere As discussed in the review, this change includes using directives in header files. I'll make follow up changes to remove those in favor of name specifiers. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D975 llvm-svn: 183989
* [Options] Add prefixes to options.Michael J. Spencer2012-10-221-3/+11
| | | | | | | | | | | | | | Each option has a set of prefixes. When matching an argument such as -funroll-loops. First the leading - is removed as it is a prefix. Then a lower_bound search for "funroll-loops" is done against the option table by option name. From there each option prefix + option name combination is tested against the argument. This allows us to support Microsoft style options where both / and - are valid prefixes. It also simplifies the cases we already have where options come in both - and -- forms. Almost every option for gnu-ld happens to have this form. llvm-svn: 166444
* [Options] Store the option ID in OptTable::Info.Michael J. Spencer2012-09-251-1/+1
| | | | llvm-svn: 164644
* Pack struct better.Benjamin Kramer2011-10-221-1/+1
| | | | llvm-svn: 142725
* Remove stray emacs mode markers in all these files that was causing emacs toNick Lewycky2010-12-311-1/+1
| | | | | | | open them in fundamental-mode instead of c++-mode. Also twiddle whitespace for consistency in ToolChains.cpp. llvm-svn: 122646
* spread 'const' love to some variables. this considerably reduces the amount ↵Nuno Lopes2009-12-101-1/+1
| | | | | | of dirty data around. llvm-svn: 91002
* Driver: Move INPUT and UNKNOWN sentinel options into the OptParser.td file.Daniel Dunbar2009-11-191-5/+0
| | | | llvm-svn: 89371
* Driver: Switch to using TableGen'erated Options.inc instead of Options.def file.Daniel Dunbar2009-11-191-1/+1
| | | | llvm-svn: 89288
* Driver: Split OptTable out into OptTable.{h,cpp}Daniel Dunbar2009-11-191-0/+42
llvm-svn: 89283
OpenPOWER on IntegriCloud