summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Driver: Add missed translation for darwin::Preprocess (gcc), -d*Daniel Dunbar2009-04-031-0/+2
| | | | | | wasn't being forwarded. llvm-svn: 68365
* Add some whitespace to test my commit privileges.Ed Schouten2009-04-021-0/+1
| | | | | | Approved by: ddunbar llvm-svn: 68343
* Driver: Allow -ccc-gcc-name to specify the name/path to use whenDaniel Dunbar2009-04-011-1/+3
| | | | | | calling gcc in generic configurations. llvm-svn: 68260
* Quick and dirty (!) fix to make sure we use powerpc in triples.Daniel Dunbar2009-04-011-1/+8
| | | | | | | | | - PR3922 - I have a clean solution for this in flight, but it may take a while to come to fruition so we'll take a quick fix for now. llvm-svn: 68241
* Driver: Add freebsd::LinkDaniel Dunbar2009-04-011-3/+108
| | | | | | - Patch by Ed Schouten! llvm-svn: 68233
* Remove a FIXME, use -emit-pth to drive PTH generation.Daniel Dunbar2009-04-011-3/+1
| | | | | | - c.f. r68164 llvm-svn: 68184
* Tweak/cleanup darwin::Link a bit, add several FIXMES, and improve testDaniel Dunbar2009-04-011-41/+42
| | | | | | case. llvm-svn: 68182
* Tweak darwin::Assemble and add a FIXME.Daniel Dunbar2009-04-011-3/+8
| | | | llvm-svn: 68165
* Driver: Forward -Wp, and -Xpreprocessor arguments to clang when usingDaniel Dunbar2009-03-311-0/+12
| | | | | | | | | | | | the preprocessor. - PR3602. - As is inherent in the blanket forwarding options, this will only work if clang-cc happens to accept what the user passed. Users by and large should use driver options to interact with the preprocessor, if at all possible. llvm-svn: 68144
* Driver: Call 'as' directly on FreeBSD.Daniel Dunbar2009-03-311-0/+36
| | | | | | - Patch by Ed Schouten! llvm-svn: 68121
* (LLVM up) Update to use llvm::sys::getHostTriple().Daniel Dunbar2009-03-311-5/+5
| | | | | | | | - Always pass -triple to clang-cc (-arch will be removed). - clang-cc doesn't play guess work with the target triple anymore. llvm-svn: 68119
* Fix -MD with no -MT when -o is specified (and fix test case).Daniel Dunbar2009-03-301-1/+1
| | | | llvm-svn: 68042
* Driver: Support -M and -MM.Daniel Dunbar2009-03-301-15/+19
| | | | | | | | - Not particularly elegant, but my hand is forced by gcc. Also, tweak -ccc-print-bindings output. llvm-svn: 68027
* Improve dependency file support.Daniel Dunbar2009-03-301-13/+60
| | | | | | | | | | | | - Rip out various bits of logic from clang-cc's dependency file gen, force driver to provide instead. - -MD output now goes to proper location <rdar://problem/6723948> clang -MD puts dep file in /tmp with wrong name - -M and -MM still don't work correctly. llvm-svn: 68022
* Driver: Add test case for darwin::Preprocess and darwin::CompileDaniel Dunbar2009-03-291-3/+6
| | | | | | tools, and enable them. llvm-svn: 68019
* Driver: Finish porting Darwin::Preprocess and Compile port (stillDaniel Dunbar2009-03-291-1/+287
| | | | | | | unused, and lacking a test case). - ccc is now on death row, pending some more testing and bug fixes. llvm-svn: 68012
* Driver: Start porting Darwin::Preprocess and Compile implementationsDaniel Dunbar2009-03-291-0/+142
| | | | | | (currently unused). llvm-svn: 68003
* Driver: Pass -f[no-]pascal-strings on to clang, even if it has beenDaniel Dunbar2009-03-271-0/+12
| | | | | | | | | turned into -m[no-]pascal-strings by the tool chain. - This still has issue that derived arguments don't propogate "used" information correctly so spurious "argument unused" warnings will still show up. llvm-svn: 67841
* Driver: Add darwin::Link tool.Daniel Dunbar2009-03-261-0/+444
| | | | | | | - <rdar://problem/6717381> [driver] implement ld argument translation in new driver llvm-svn: 67760
* Turn on -analyzer-eagerly-assume by default when using 'clang-cc' to performTed Kremenek2009-03-251-0/+1
| | | | | | static analysis. llvm-svn: 67665
* Driver: Handle -flto, -O4, and tweak -emit-llvm to match llvm-gcc.Daniel Dunbar2009-03-241-3/+6
| | | | | | | | | | | | - -emit-llvm no longer changes what compilation steps are done. - -emit-llvm and -emit-llvm -S write output files with .o and .s suffixes, respectively. - <rdar://problem/6714125> clang-driver should support -O4 and -flto, like llvm-gcc llvm-svn: 67645
* Driver: Translate -fverbose-asm for LLVM backend.Daniel Dunbar2009-03-241-1/+1
| | | | | | | - <rdar://problem/6715707> driver should translate -fverbose-asm into -asm-verbose llvm-svn: 67634
* Driver: Forward -MMD (not -MM) to clang-cc; this got lost inDaniel Dunbar2009-03-241-1/+1
| | | | | | translation, the former we support, the later we don't (yet). llvm-svn: 67611
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Driver: lipo wasn't being called correctly (translation failure fromDaniel Dunbar2009-03-241-0/+3
| | | | | | ccc due to the different way we handle output arguments). llvm-svn: 67583
* Driver: Add two special groups of "whitelisted" options which we knowDaniel Dunbar2009-03-231-0/+12
| | | | | | | | | | | | | | | | | | | | clang doesn't support, and don't want to warn are unused. Eventually these should disappear. Here is a more readable list than is in the diff: W options: -Wall, -Wcast-align, -Wchar-align, -Wchar-subscripts, -Werror, -Wextra, -Winline, -Wint-to-pointer-cast, -Wmissing-braces, -Wmost, -Wnested-externs, -Wno-format-y2k, -Wno-four-char-constants, -Wno-missing-field-initializers, -Wno-trigraphs, -Wno-unknown-pragmas, -Wno-unused-parameter, -Wparentheses, -Wpointer-arith, -Wpointer-to-int-cast, -Wreturn-type, -Wshorten-64-to-32, -Wswitch, -Wunused-function, -Wunused-label, -Wunused-value, -Wunused-variable, -Wwrite-strings. f options: -fasm-blocks, -fmessage-length=. llvm-svn: 67549
* Driver: Switch to using -include-pth.Daniel Dunbar2009-03-201-35/+23
| | | | llvm-svn: 67393
* Driver: Add and use darwin::Assemble tool.Daniel Dunbar2009-03-201-2/+48
| | | | | | - Based on patch from Pieter de Bie; thanks! llvm-svn: 67379
* Driver: Add darwin::Lipo tool.Daniel Dunbar2009-03-201-1/+24
| | | | llvm-svn: 67355
* Driver/clang: -mattr strings were not comma separated.Daniel Dunbar2009-03-191-0/+4
| | | | | | - Apologies for commits w/o test cases; they are coming. llvm-svn: 67310
* Driver: Claim -arch options when pipelining, and claim arguments thatDaniel Dunbar2009-03-191-1/+6
| | | | | | | | | | | are forwarded to GCC. - The later is unfortunate, as it prevents us from generally warning about anything interesting on platforms that use a generic toolchain. However, we can't do much better without significantly complicating things, and generally we should have proper tool chain definitions. llvm-svn: 67293
* Driver: Handle "linker input" arguments.Daniel Dunbar2009-03-191-11/+20
| | | | | | | | | - Make InputInfo a variant of filename, pipe, input argument, nothing. - Leave a FIXME in InputInfo that this should be revisited. llvm-svn: 67292
* Driver: Fix bug in translating -O to clang, add clang-translation testDaniel Dunbar2009-03-181-1/+1
| | | | | | case. llvm-svn: 67257
* Driver: Resolve program path for "cp" (used as part of transparent gccDaniel Dunbar2009-03-181-1/+3
| | | | | | PCH support). llvm-svn: 67256
* Driver: Lookup program names using llvm::sys::Program::FindProgramByName Daniel Dunbar2009-03-181-1/+3
| | | | | | | | | if our usual methods fail. This isn't necessary for running the tool, but improves the accuracy of logging output. Also, have GCC tools lookup gcc program path. llvm-svn: 67243
* Driver: Port Clang argument translation.Daniel Dunbar2009-03-181-11/+294
| | | | llvm-svn: 67193
* Driver: Lift out common GCC tool and implement generic GCC toolDaniel Dunbar2009-03-181-34/+93
| | | | | | | | argument translation. Also, stub out clang tool implementation a bit more. llvm-svn: 67185
* Driver: ConstructJob also needs to know the destination (where to putDaniel Dunbar2009-03-181-6/+21
| | | | | | its commands). llvm-svn: 67179
* Driver: Add a dash of const.Daniel Dunbar2009-03-181-7/+12
| | | | llvm-svn: 67170
* Driver: Stub out Tool::ConstructJob.Daniel Dunbar2009-03-181-0/+55
llvm-svn: 67169
OpenPOWER on IntegriCloud