summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ArgList.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix else style. No functionality change intended.Chad Rosier2011-08-171-1/+2
| | | | llvm-svn: 137896
* [driver] Make sure to update the iterator end when erasing for Args.Chad Rosier2011-08-121-2/+2
| | | | llvm-svn: 137539
* Improved efficiency by using iterator returned by erase, rather then restarting.Chad Rosier2011-08-081-4/+4
| | | | | | Thanks to David Blaikie for pointing this out. llvm-svn: 137051
* When the compiler crashes, the compiler driver now produces diagnostic Chad Rosier2011-08-021-0/+16
| | | | | | | | | information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. rdar://9575623 llvm-svn: 136702
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-17/+17
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Temporarily revert r135614 while I fix the cmake build.Chad Rosier2011-07-201-16/+0
| | | | llvm-svn: 135621
* When the compiler crashes, the compiler driver now produces diagnostic ↵Chad Rosier2011-07-201-0/+16
| | | | | | | | | information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. llvm-svn: 135614
* StringRef'ize clang::drive::Option::getName(), from Zach Wheeler!Douglas Gregor2011-07-051-2/+2
| | | | llvm-svn: 134418
* 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
* Fix PR8639 by making the "argument unused during compilation" less ↵Rafael Espindola2010-12-201-19/+16
| | | | | | | | agressive. Now we don't warn if an argument is not used because it is shadowed by a subsequent argument. llvm-svn: 122281
* Declare argv parameters as const char* const* instead of to char** to ↵Axel Naumann2010-10-111-1/+2
| | | | | | clarify that they are not modified, and to allow for string literals as arguments. llvm-svn: 116200
* Driver/Darwin: Pass -pie/-no_pie to the linker when -fpie/-fno-pie and friendsDaniel Dunbar2010-07-131-0/+19
| | | | | | are explicitly given. llvm-svn: 108297
* Driver: Fix refacto in DerivedArgList::MakeSeparateArg.Daniel Dunbar2010-06-141-25/+16
| | | | llvm-svn: 105958
* Driver: Add an explicit argument translation phase to the driver itself. We ↵Daniel Dunbar2010-06-111-3/+1
| | | | | | are going to need this to handle things like -Xassembler, -Xpreprocessor, and -Xlinker which we might have to introspect. llvm-svn: 105842
* Driver: Get rid of the proxy support in DerivedArgList.Daniel Dunbar2010-06-111-5/+6
| | | | llvm-svn: 105841
* Driver: Fix arg_iterator typing to reflect that it is really an iterator ↵Daniel Dunbar2010-06-111-9/+9
| | | | | | over Arg*s. llvm-svn: 105838
* Driver: Eliminate Arg subclasses, which are now unnecessary.Daniel Dunbar2010-06-091-6/+6
| | | | llvm-svn: 105762
* Driver: Change Arg to just hold the values directly, instead of implicitlyDaniel Dunbar2010-06-091-5/+8
| | | | | | deriving them from the Arg type. llvm-svn: 105760
* Driver: Add an explicit offset to JoinedArg and JoinedAndSeparateArg, so thatDaniel Dunbar2010-06-091-1/+12
| | | | | | they can be independent of the exact option that created them. llvm-svn: 105739
* Attempt to make MSVC happy.Daniel Dunbar2010-05-221-1/+1
| | | | llvm-svn: 104432
* Try to fix MSVC build.Benjamin Kramer2010-05-211-0/+1
| | | | llvm-svn: 104371
* Driver: Move some argument lookup utilities into driver::ArgList.Daniel Dunbar2010-05-201-0/+27
| | | | llvm-svn: 104237
* Driver: Free synthesized derived arguments.Daniel Dunbar2010-03-111-7/+14
| | | | llvm-svn: 98262
* Fix -Wsign-compare warnings reported by clang++.Ted Kremenek2010-03-101-3/+3
| | | | llvm-svn: 98174
* Add an arg_iterator, for iterating over a subset of arguments in an ArgList.Daniel Dunbar2009-11-251-72/+40
| | | | llvm-svn: 89860
* Driver: Introduce OptSpecifier class for protecting access to an option id.Daniel Dunbar2009-11-191-17/+17
| | | | llvm-svn: 89310
* Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead ↵Daniel Dunbar2009-11-191-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 Dunbar2009-09-091-8/+18
| | | | llvm-svn: 81385
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-16/+14
| | | | llvm-svn: 81346
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-281-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 argumentDaniel Dunbar2009-04-261-3/+11
| | | | | | should be joined or separate. llvm-svn: 70101
* Driver: Add default for ArgList::hasFlag and simplify implementation.Daniel Dunbar2009-04-071-6/+2
| | | | llvm-svn: 68549
* Driver: Explicitly ignore -fpch-preprocess when using clang, we don'tDaniel Dunbar2009-04-031-0/+9
| | | | | | need to do anything special to support this. llvm-svn: 68403
* Driver: Unbreak ArgList::hasFlag.Daniel Dunbar2009-03-301-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 thatDaniel Dunbar2009-03-291-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 toDaniel Dunbar2009-03-261-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 Dunbar2009-03-251-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 Dunbar2009-03-241-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 Dunbar2009-03-221-1/+3
| | | | llvm-svn: 67490
* Driver: Add two option overload for AddAllArgValues.Daniel Dunbar2009-03-201-0/+13
| | | | llvm-svn: 67377
* Driver: Add argument translation utilities to ArgList.Daniel Dunbar2009-03-181-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 Dunbar2009-03-171-1/+1
| | | | llvm-svn: 67101
* Driver: Add two option form of ArgList::getLastArg.Daniel Dunbar2009-03-171-0/+14
| | | | llvm-svn: 67090
* Add ArgList::MakeArgString and make ArgList::Make* const.Daniel Dunbar2009-03-171-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 theDaniel Dunbar2009-03-151-3/+6
| | | | | | arguments if they exist. llvm-svn: 67014
* Driver: Fix think in ArgList::MakeIndex.Daniel Dunbar2009-03-131-1/+1
| | | | llvm-svn: 66908
* Driver: Add ArgList support for synthesizing arguments.Daniel Dunbar2009-03-121-0/+36
| | | | llvm-svn: 66805
* Driver: Add ArgList::getLastArg.Daniel Dunbar2009-03-121-3/+3
| | | | llvm-svn: 66794
* Driver: Fix thinko in Arg::hasArg.Daniel Dunbar2009-03-121-1/+1
| | | | llvm-svn: 66785
* Driver: Add ArgList::hasArg, for testing for the presence of anDaniel Dunbar2009-03-121-0/+11
| | | | | | argument matching some Option::ID. llvm-svn: 66758
OpenPOWER on IntegriCloud