summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor refactor of how we get compilation phases.Matthew Curtis2013-03-071-8/+9
| | | | | | | | | There is now a single function to get the list of phases for a given output Type. No functionality change intended. llvm-svn: 176628
* No need to initialize these variables.Chad Rosier2013-02-261-1/+1
| | | | llvm-svn: 176128
* Remove the SplitDebug action and replace with a set of commandsEric Christopher2013-02-211-18/+0
| | | | | | | in the compilation setup. Note that this doesn't currently work for -no-integrated-as. llvm-svn: 175813
* Fix up grammar a bit.Eric Christopher2013-02-181-2/+2
| | | | llvm-svn: 175418
* Unify some code. No functional change.Eric Christopher2013-02-181-9/+3
| | | | llvm-svn: 175409
* Driver and option support for -gsplit-dwarf. This is a part ofEric Christopher2013-02-051-3/+22
| | | | | | the DWARF5 split dwarf proposal. llvm-svn: 174349
* [driver] Don't try to generate diagnostic information for dsymutil crashes.Chad Rosier2013-02-011-2/+3
| | | | | | Part of rdar://13134273 llvm-svn: 174203
* [driver] Clear the FailureResultFiles when initializing clang diagnostics. Also,Chad Rosier2013-01-291-6/+6
| | | | | | minor cleanup. llvm-svn: 173852
* [driver] Refactor the driver so that a failing commands doesn't preventChad Rosier2013-01-291-34/+41
| | | | | | | | | | | subsequent commands from being executed. The diagnostics generation isn't designed for this use case, so add a note to fix this in the very near future. For now, just generated the diagnostics for the first failing command. Part of rdar://12984531 llvm-svn: 173825
* Fix comment.Eric Christopher2013-01-281-1/+1
| | | | llvm-svn: 173700
* [driver] Associate a JobAction with each result file. This enables the driverChad Rosier2013-01-241-6/+8
| | | | | | | to delete result files for only those commands that fail. Part of rdar://12984531 llvm-svn: 173361
* Fix code that attempted to produce a diagnostic with one DiagnosticEngine, thenRichard Smith2012-12-201-3/+6
| | | | | | | | produce a note for that diagnostic either with a different DiagnosticEngine or after calling DiagnosticEngine::Reset(). That didn't make any sense, and did the wrong thing if the original diagnostic was suppressed. llvm-svn: 170636
* clang/lib/Driver/Driver.cpp: Split COMPILER_PATH according to ↵NAKAMURA Takumi2012-12-121-1/+2
| | | | | | | | llvm::sys::PathSeparator, that is ';' in Win32 hosts. Thanks to Bogon Kim! llvm-svn: 169964
* Hexagon TC: Update toolchain to add appropriate includeMatthew Curtis2012-12-061-1/+1
| | | | | | | | | | paths - Inherit from Linux rather than ToolChain - Override AddClangSystemIncludeArgs and AddClangCXXStdlibIncludeArgs to properly set include paths. llvm-svn: 169495
* Driver.cpp: Restore clang/Config/config.h to be included at last not to ↵NAKAMURA Takumi2012-12-051-1/+4
| | | | | | | | prevent llvm-config.h. Or "llvm/Support/system_error.h" could not be compiled on mingw. llvm-svn: 169354
* Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth2012-12-041-13/+7
| | | | | | | | | | | | | uncovered. This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files. I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers. llvm-svn: 169237
* Remove some dead code. CLANG_IS_PRODUCTION is now just a build flag andRafael Espindola2012-11-271-1/+0
| | | | | | is not used in any #ifdef. llvm-svn: 168703
* Revert r167567, restoring the ability of clang to run gcc in cases where itNick Lewycky2012-11-151-0/+16
| | | | | | can't handle the input file type. This resulted in PR14338. llvm-svn: 168024
* PR14303: Add a NoDriverOption flag to those options which are not accepted byRichard Smith2012-11-091-1/+3
| | | | | | | the driver (the options defined in CC1Options.td) and exclude their help from "clang --help". llvm-svn: 167638
* Driver/Darwin: The -arch argument values aren't exactly the arch names from aDaniel Dunbar2012-11-081-1/+1
| | | | | | | | triple. - Translate the special case of powerpc to its expected -arch name. llvm-svn: 167571
* Rip out a bunch of code for invoking gcc from clang.Bob Wilson2012-11-081-16/+0
| | | | llvm-svn: 167567
* Remove code to fall back to llvm-gcc for i386 kexts.Bob Wilson2012-11-081-1/+1
| | | | | | More cleanups to follow in separate commits.... llvm-svn: 167566
* [Driver] Fix -Wp,-MMD pr13959Michael J. Spencer2012-11-071-3/+3
| | | | llvm-svn: 167559
* Remove first argument from Arg::getValue; it's been unused since r105760.Richard Smith2012-11-011-30/+30
| | | | llvm-svn: 167211
* getArchTypeForDarwinArchName is only used in the clang driver, copy it there.Rafael Espindola2012-10-311-3/+3
| | | | | | I will remove it from llvm in the next commit. llvm-svn: 167156
* [driver] Completely rework how superfluous options are stripped out of the crashChad Rosier2012-10-311-53/+2
| | | | | | | | | | | | diagnostics script. This addresses the FIXME pertaining to quoted arguments. We also delineate between those flags that have an argument (e.g., -D macro, -MF file) and those that do not (e.g., -M, -MM, -MG). Finally, we add the -dwarf-debug-flags to the list of flags to be removed. rdar://12329974 llvm-svn: 167152
* Fix if-else braces layout accordingly to the style guide.Simon Atanasyan2012-10-311-2/+1
| | | | llvm-svn: 167118
* Extend -Bprefix functionality and make it closer to gcc. If the "prefix"Simon Atanasyan2012-10-311-6/+13
| | | | | | | | | | is not a directory, Driver::GetProgramPath() routine does not try to append the program name as a "path component" to it. It just joins the "prefix" with the program name and checks the resulting path existence. The patch reviewed by Rafael Espindola. llvm-svn: 167114
* Remove the -ccc-no-clang option.Rafael Espindola2012-10-311-3/+1
| | | | llvm-svn: 167093
* Remove ccc-no-clang-cpp, which is also dead now.Rafael Espindola2012-10-301-8/+3
| | | | llvm-svn: 167062
* In the past "production" clang builds would not be used for c++, andRafael Espindola2012-10-301-10/+1
| | | | | | | | | we had the -ccc-clang-cxx and -ccc-no-clang-cxx options to force them on or off for testing. Clang c++ support is now production quality and these options are dead. llvm-svn: 166986
* Remove a bit of dead code.Rafael Espindola2012-10-291-6/+0
| | | | llvm-svn: 166983
* [driver] Before applying the working directory check if the input pathArgyrios Kyrtzidis2012-10-261-2/+2
| | | | | | is absolute. llvm-svn: 166808
* [Options] Add prefixes to options.Michael J. Spencer2012-10-221-1/+1
| | | | | | | | | | | | | | 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] Make Option non clang specific.Michael J. Spencer2012-10-191-3/+3
| | | | llvm-svn: 166348
* Revert r166223 and the subsequent commits that depend on it, r166230 & r166235.Argyrios Kyrtzidis2012-10-181-3/+3
| | | | | | This seems to have introduced assertion hit when building compiler-rt. llvm-svn: 166245
* [Options] Make Option non clang specific.Michael J. Spencer2012-10-181-3/+3
| | | | llvm-svn: 166230
* The clang driver has a fairly fancy support for executing gcc instead ofRafael Espindola2012-10-091-38/+0
| | | | | | | | | | | | | | clang itself. This dates back to clang's early days and while it looks like some of it is still used (for kext for example), other parts are probably dead. Remove the -ccc-clang-archs option and associated code. I don't think there is any remaining setup where clang doesn't support an architecture but it can expect an working gcc cross compiler to be available. A nice side effect is that tests no longer need to differentiate architectures that are included in production builds of clang and those that are not. llvm-svn: 165545
* Fix typo in comments.Logan Chien2012-10-041-2/+2
| | | | llvm-svn: 165216
* Remove useless parameter "WantFile" from Driver::GetProgramPath().Simon Atanasyan2012-10-031-12/+6
| | | | | | | | | This parameter is useless because nowhere used explicitly and always gets its default value - "false". The patch reviewed by Rafael Espindola. llvm-svn: 165149
* Fix typo in comments.Logan Chien2012-10-031-1/+1
| | | | llvm-svn: 165105
* Modern objcective-C translator. When doing rewriting, Do not Fariborz Jahanian2012-09-281-0/+1
| | | | | | | use the integrated pre-processor, preprocess in objective-c++ mode. // rdar://12189793. llvm-svn: 164836
* Improve the driver title as shown in the --help message. <rdar://12297538>Bob Wilson2012-09-141-1/+1
| | | | llvm-svn: 163870
* Make Option non virtual.Michael J. Spencer2012-08-201-2/+2
| | | | llvm-svn: 162231
* clang support for Bitrig (an OpenBSD fork); patch by David Hill.Eli Friedman2012-08-081-0/+3
| | | | llvm-svn: 161546
* Handle null suffixes in GetTemporaryPath (PCH files don't have suffixes).Ted Kremenek2012-08-071-1/+2
| | | | llvm-svn: 161367
* PR13529: Don't crash if the driver sees an unused input file when running asRichard Smith2012-08-061-4/+13
| | | | | | | | | | 'clang-cpp'. For now, the test uses "REQUIRES: shell" to determine if the host system supports "ln -s", which it uses to create a 'clang-cpp' symlink. This is a bit hacky and should likely be directly supported by lit.cfg. llvm-svn: 161317
* No longer emitting a PCH file when using -fsyntax-only on a header file. ↵Aaron Ballman2012-07-311-2/+8
| | | | | | Fixes PR13343. llvm-svn: 161019
* [driver crash diagnostics] Strip -internal-isystem and ↵Chad Rosier2012-07-251-0/+2
| | | | | | | | -internal-externc-isystem. rdar://11949066 llvm-svn: 160752
* [driver crash diagnostics] Strip -idirafter, -iprefix, -iwithprefix,Chad Rosier2012-07-251-0/+5
| | | | | | | -iwithprefixbefore, and -isystem options, per Matt's suggestion. rdar://11949066 llvm-svn: 160750
OpenPOWER on IntegriCloud