summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Introduce -f{no-}spell-checking options to enable/disableDouglas Gregor2010-07-091-0/+4
| | | | | | | spell-checking. By default, spell-checking is enabled for Clang (obviously) but disabled in CIndex for performance reasons. llvm-svn: 107992
* add driver support for minix, patch by Kees van ReeuwijkChris Lattner2010-07-076-29/+291
| | | | | | from PR7583 llvm-svn: 107788
* Driver/IRgen: Add support for -momit-leaf-frame-pointer.Daniel Dunbar2010-07-011-0/+5
| | | | llvm-svn: 107367
* Driver/Darwin: Add one -L for the DarwinClang toolchain to point into the gccDaniel Dunbar2010-06-301-0/+27
| | | | | | | library directory, as we still rely on a few libraries that are hiding there (in particular libstdc++.dylib). llvm-svn: 107353
* Driver/Darwin: Only run dsymutil when we are also compiling/assembling as partDaniel Dunbar2010-06-291-5/+19
| | | | | | | of the compilation. - <rdar://problem/8141387> clang is always invoking dsymutil llvm-svn: 107149
* Set the default arch based on the triple.Rafael Espindola2010-06-281-46/+55
| | | | llvm-svn: 107021
* Use softfp for linux gnueabi, keep the warning for everything else.Rafael Espindola2010-06-271-2/+9
| | | | llvm-svn: 106984
* Implement support for -fwrapv, rdar://7221421Chris Lattner2010-06-261-0/+1
| | | | | | | | | | | | As part of this, pull together trapv handling into the same enum. This also add support for NSW multiplies. This also makes PCH disagreement on overflow behavior silent, since it really doesn't matter except for warnings and codegen (no macros get defined etc). llvm-svn: 106956
* Driver: Add make variable to allow disabling default integrated assembler, tillDaniel Dunbar2010-06-231-0/+4
| | | | | | all the kinks are worked out. llvm-svn: 106641
* Make c++ and C++ valid extensions for C++ source files, from Seth Cantrell!Douglas Gregor2010-06-221-0/+2
| | | | llvm-svn: 106602
* Driver: Remove some dead code left around after a refactoring. Found by theDaniel Dunbar2010-06-221-10/+0
| | | | | | Clang static analyzer! llvm-svn: 106568
* implement support for -finstrument-functions, patch by NelsonChris Lattner2010-06-221-0/+2
| | | | | | Elhage! llvm-svn: 106507
* Update CMake build for new attribute changes.Alexis Hunt2010-06-171-2/+2
| | | | llvm-svn: 106188
* Change the test for which ABI/CC to use on ARM to be base on the environmentRafael Espindola2010-06-161-12/+5
| | | | | | (the last argument of the triple). llvm-svn: 106131
* Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy ↵Daniel Dunbar2010-06-161-1/+2
| | | | | | Straszheim! llvm-svn: 106113
* Driver: Support -Wp,-MMD,FOO, which I found an instance of. :(Daniel Dunbar2010-06-151-3/+7
| | | | llvm-svn: 106039
* Implement -fvisibility-inlines-hidden. <rdar://problem/7819834>Douglas Gregor2010-06-151-0/+2
| | | | llvm-svn: 106003
* Driver/FreeBSD: Add libexec to program search paths, to workaround some buildDaniel Dunbar2010-06-151-0/+2
| | | | | | problem; patch by Ed Schouten. llvm-svn: 105996
* Driver: Fix PR4062 by dissecting one particular -Wp, form.Daniel Dunbar2010-06-141-6/+19
| | | | llvm-svn: 105966
* Driver: Dissect -Wl, and -Xlinker arguments to remove --no-demangle, which was aDaniel Dunbar2010-06-141-3/+27
| | | | | | collect2 option that is passed by some projects (notably WebKit). llvm-svn: 105964
* Driver: Eliminate uses of Arg::getIndex.Daniel Dunbar2010-06-142-5/+7
| | | | | | Also, fix a memory leak. llvm-svn: 105963
* Driver: Fix refacto in DerivedArgList::MakeSeparateArg.Daniel Dunbar2010-06-141-25/+16
| | | | llvm-svn: 105958
* Driver: Add DerivedArgList::AddFOOArg helper functions, and switch to using ↵Daniel Dunbar2010-06-141-51/+45
| | | | | | them. llvm-svn: 105957
* Driver: Switch Compilation to return the translated arguments by default.Daniel Dunbar2010-06-111-1/+1
| | | | llvm-svn: 105844
* Driver: Add an explicit argument translation phase to the driver itself. We ↵Daniel Dunbar2010-06-115-31/+33
| | | | | | 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
* Fix a couple comments.Daniel Dunbar2010-06-111-3/+1
| | | | llvm-svn: 105840
* Driver: Change OptTable::ParseArg to take any ArgList.Daniel Dunbar2010-06-112-11/+11
| | | | llvm-svn: 105839
* Driver: Fix arg_iterator typing to reflect that it is really an iterator ↵Daniel Dunbar2010-06-112-25/+25
| | | | | | over Arg*s. llvm-svn: 105838
* Add an option -fshow-overloads=best|all to limit the number of overloadJeffrey Yasskin2010-06-111-0/+3
| | | | | | | candidates printed. We default to 'all'. At the moment, 'best' prints only the first 4 overloads, but we'll improve that over time. llvm-svn: 105815
* Driver: Change Option parsing to always create arguments referring to unaliasedDaniel Dunbar2010-06-091-9/+10
| | | | | | | | options. - This matches the intent of the .td files, and will simplify alias handling. - PR7321. llvm-svn: 105763
* Driver: Eliminate Arg subclasses, which are now unnecessary.Daniel Dunbar2010-06-095-100/+66
| | | | llvm-svn: 105762
* Driver: Keep the rendering style in the option, instead of as part of the Arg.Daniel Dunbar2010-06-093-46/+64
| | | | llvm-svn: 105761
* Driver: Change Arg to just hold the values directly, instead of implicitlyDaniel Dunbar2010-06-094-66/+64
| | | | | | deriving them from the Arg type. llvm-svn: 105760
* Revert "Driver: Change Option parsing to always create arguments referring toDaniel Dunbar2010-06-091-9/+9
| | | | | | unaliased", this isn't quite right yet. llvm-svn: 105747
* Driver: Change Option parsing to always create arguments referring to unaliasedDaniel Dunbar2010-06-091-9/+9
| | | | | | | | options. - This matches the intent of the .td files, and will simplify alias handling. - PR7321. llvm-svn: 105744
* Driver: Add an explicit offset to JoinedArg and JoinedAndSeparateArg, so thatDaniel Dunbar2010-06-093-14/+28
| | | | | | they can be independent of the exact option that created them. llvm-svn: 105739
* Driver: Change Arg::render methods to use option name instead of string whereDaniel Dunbar2010-06-091-2/+2
| | | | | | possible. llvm-svn: 105738
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-081-2/+0
| | | | | | scattered throughout the project Makefiles. llvm-svn: 105638
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-081-2/+2
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Implement -fcaret-diagnostics to undo -fno-caret-diagnostics.Jeffrey Yasskin2010-06-081-1/+5
| | | | llvm-svn: 105597
* Driver: Support invoking Clang on .ll or .bc inputs.Daniel Dunbar2010-06-073-13/+39
| | | | | | | | | | | | | | | - We actually pretend that we have two separate types for LLVM assembly/bitcode because we need to use the standard suffixes with LTO ('clang -O4 -c t.c' should generate 't.o'). It is now possible to do something like: $ clang -emit-llvm -S t.c -o t.ll ... assorted other compile flags ... $ clang -c t.ll -o t.o ... assorted other compile flags ... and expect that the output will be almost* identical to: $ clang -c t.c -o t.o ... assorted other compile flags ... because all the target settings (default CPU, target features, etc.) will all be initialized properly by the driver/frontend. *: This isn't perfect yet, because in practice we will end up running the optimization passes twice. It's possible to get something equivalent out with a well placed -mllvm -disable-llvm-optzns, but I'm still thinking about the cleanest way to solve this problem more generally. llvm-svn: 105584
* Driver: Change -dwarf-debug-flags option to pass the original command lineDaniel Dunbar2010-06-041-2/+7
| | | | | | arguments after translation, instead of the -cc1 level arguments. llvm-svn: 105476
* Driver/Darwin: Model dsymutil properly, as a separate action/tool kind which isDaniel Dunbar2010-06-042-45/+30
| | | | | | | added as the last output step, instead of just hacking it into the link step. - Among other things, this fixes dSYM generation when using multiple -arch options. llvm-svn: 105475
* Driver: Add an explicit dsymutil action.Daniel Dunbar2010-06-044-0/+46
| | | | llvm-svn: 105474
* Driver: Spell -relax-all correctly when calling the cc1as tool.Daniel Dunbar2010-05-281-1/+1
| | | | llvm-svn: 104955
* Driver: Update -O -> -O2 replacement for addition of -O0 option.Daniel Dunbar2010-05-271-1/+2
| | | | llvm-svn: 104823
* Driver: Add support for -m[no-]relax-all, and make it the default at -O0.Daniel Dunbar2010-05-271-0/+18
| | | | llvm-svn: 104815
* Attempt to make MSVC happy.Daniel Dunbar2010-05-221-1/+1
| | | | llvm-svn: 104432
* Daniel re-educated me about what Alias does and does not do. Turn that off forChandler Carruth2010-05-221-0/+8
| | | | | | | | '-fasm' and explicitly map from that flag to -fgnu-keywords in the driver. Turn off the driver in the lexer test for this madness and add a test to the driver that the translation actually works. llvm-svn: 104428
OpenPOWER on IntegriCloud