Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add an arg_iterator, for iterating over a subset of arguments in an ArgList. | Daniel Dunbar | 2009-11-25 | 1 | -72/+40 |
| | | | | llvm-svn: 89860 | ||||
* | Driver: Introduce OptSpecifier class for protecting access to an option id. | Daniel Dunbar | 2009-11-19 | 1 | -17/+17 |
| | | | | llvm-svn: 89310 | ||||
* | Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead ↵ | Daniel Dunbar | 2009-11-19 | 1 | -16/+19 |
| | | | | | | | | of taking a Claim argument. - Most driver code always claims, and bool arguments don't play nice with the overloads. llvm-svn: 89308 | ||||
* | StringRefize ArgList construction of ArgStrings. | Daniel Dunbar | 2009-09-09 | 1 | -8/+18 |
| | | | | llvm-svn: 81385 | ||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -16/+14 |
| | | | | llvm-svn: 81346 | ||||
* | Add stack protector support to clang. This generates the 'ssp' and 'sspreq' | Bill Wendling | 2009-06-28 | 1 | -0/+29 |
| | | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405 | ||||
* | Add option for AddAllArgsTranslated to control whether output argument | Daniel Dunbar | 2009-04-26 | 1 | -3/+11 |
| | | | | | | should be joined or separate. llvm-svn: 70101 | ||||
* | Driver: Add default for ArgList::hasFlag and simplify implementation. | Daniel Dunbar | 2009-04-07 | 1 | -6/+2 |
| | | | | llvm-svn: 68549 | ||||
* | Driver: Explicitly ignore -fpch-preprocess when using clang, we don't | Daniel Dunbar | 2009-04-03 | 1 | -0/+9 |
| | | | | | | need to do anything special to support this. llvm-svn: 68403 | ||||
* | Driver: Unbreak ArgList::hasFlag. | Daniel Dunbar | 2009-03-30 | 1 | -1/+1 |
| | | | | | | | - <rdar://problem/6726511> [driver] clang does not have -msoft-float hooked up. llvm-svn: 68044 | ||||
* | Driver: Track which original arguments an arg is derived from, so that | Daniel Dunbar | 2009-03-29 | 1 | -8/+9 |
| | | | | | | | we can properly claim arguments, even if they have been translated by the tool chain. llvm-svn: 68020 | ||||
* | Driver: Add ArgList::AddAllArgsTranslated; for forwarding options to | Daniel Dunbar | 2009-03-26 | 1 | -0/+13 |
| | | | | | | | tools with the name of the option replace, and arguments rendered separately. llvm-svn: 67753 | ||||
* | Driver: Prep for tool chain specific argument translation. | Daniel Dunbar | 2009-03-25 | 1 | -50/+78 |
| | | | | | | | | | | | | | | | | - 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 | ||||
* | Driver: ArgList::getLastArg was in fact returning the first matching arg. | Daniel Dunbar | 2009-03-24 | 1 | -3/+1 |
| | | | | | | | - <rdar://problem/6715818> clang doesn't honor gcc semantic that last -O optimization option wins. llvm-svn: 67628 | ||||
* | Driver: Implement 'missing argument' error. | Daniel Dunbar | 2009-03-22 | 1 | -1/+3 |
| | | | | llvm-svn: 67490 | ||||
* | Driver: Add two option overload for AddAllArgValues. | Daniel Dunbar | 2009-03-20 | 1 | -0/+13 |
| | | | | llvm-svn: 67377 | ||||
* | Driver: Add argument translation utilities to ArgList. | Daniel Dunbar | 2009-03-18 | 1 | -0/+65 |
| | | | | | | | | - Support things like telling which -ffoo -fno-foo option won, and forwarding all arguments matching a certain set of options to the tool. llvm-svn: 67189 | ||||
* | Driver: Fix typo ArgList destructor. | Daniel Dunbar | 2009-03-17 | 1 | -1/+1 |
| | | | | llvm-svn: 67101 | ||||
* | Driver: Add two option form of ArgList::getLastArg. | Daniel Dunbar | 2009-03-17 | 1 | -0/+14 |
| | | | | llvm-svn: 67090 | ||||
* | Add ArgList::MakeArgString and make ArgList::Make* const. | Daniel Dunbar | 2009-03-17 | 1 | -6/+10 |
| | | | | | | | | | - Slightly strange, but the idea is that the ArgList data structure is primarily a list of arguments; we want to allow clients to still add argument strings to an ArgList to avoid worrying about string lifetimes (or unnecessary string copying). llvm-svn: 67086 | ||||
* | Driver: Update ArgList::{hasArg,getLastArg} to optionally claim the | Daniel Dunbar | 2009-03-15 | 1 | -3/+6 |
| | | | | | | arguments if they exist. llvm-svn: 67014 | ||||
* | Driver: Fix think in ArgList::MakeIndex. | Daniel Dunbar | 2009-03-13 | 1 | -1/+1 |
| | | | | llvm-svn: 66908 | ||||
* | Driver: Add ArgList support for synthesizing arguments. | Daniel Dunbar | 2009-03-12 | 1 | -0/+36 |
| | | | | llvm-svn: 66805 | ||||
* | Driver: Add ArgList::getLastArg. | Daniel Dunbar | 2009-03-12 | 1 | -3/+3 |
| | | | | llvm-svn: 66794 | ||||
* | Driver: Fix thinko in Arg::hasArg. | Daniel Dunbar | 2009-03-12 | 1 | -1/+1 |
| | | | | llvm-svn: 66785 | ||||
* | Driver: Add ArgList::hasArg, for testing for the presence of an | Daniel Dunbar | 2009-03-12 | 1 | -0/+11 |
| | | | | | | argument matching some Option::ID. llvm-svn: 66758 | ||||
* | Driver: Add ArgList::{append, getArgString} | Daniel Dunbar | 2009-03-04 | 1 | -0/+9 |
| | | | | llvm-svn: 66089 | ||||
* | Driver: Add ArgList implementation. | Daniel Dunbar | 2009-03-04 | 1 | -0/+22 |
llvm-svn: 66037 |