summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* [driver crash diagnostics] A few enhancements:Chad Rosier2012-07-251-1/+19
| | | | | | | | | -Strip -iquote and -M options. -Quote -D options to avoid problems with command line macros that include parens. rdar://11949066 llvm-svn: 160743
* [Win32] Rework crash-report since r145389.NAKAMURA Takumi2012-07-171-7/+1
| | | | | | | | | | | - lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions. - test/Driver/crash-report.c: Add REQUIRES:shell for now. FIXME: setenv should work also on Lit.InternalShellRunner. - test/Driver/crash-report.c: Remove XFAIL. Thanks to Chad, To point out the issue. llvm-svn: 160343
* 80-column and whitespace.Chad Rosier2012-07-091-8/+9
| | | | llvm-svn: 159942
* Include -D files in crash report repro scripts. (PR13255)David Blaikie2012-07-021-1/+0
| | | | | | | | | | | | Now that we're only using -frewrite-includes rather than full preprocessing when producing repro source files, we should also include command line macro definitions in the repro script. I don't have a test case for this because I'm not sure if/how I can open the crash report file when the name is only known by scraping the crash report output. Suggestions welcome if anyone thinks it'd be helpful. llvm-svn: 159592
* Use -frewrite-includes for crash reports.David Blaikie2012-06-291-1/+5
| | | | | | | | | | | In future changes we should: * use __builtin_trap rather than derefing 'random' volatile pointers. * avoid dumping temporary files into /tmp when running tests, instead preferring a location that is properly cleaned up by lit. Review by Chandler Carruth. llvm-svn: 159469
* [driver] Per Bob's suggestion, emphasize the file dumps.Chad Rosier2012-06-191-7/+8
| | | | | | rdar://11684107 llvm-svn: 158734
* [driver] Print the compiler version before the diagnostic messages.Chad Rosier2012-06-191-3/+3
| | | | llvm-svn: 158729
* [driver] Make the crash diagnostic message more visable. Bug reports are beingChad Rosier2012-06-191-2/+5
| | | | | | | filed, but still missing the preprocessed source and associated run script. rdar://11684107 llvm-svn: 158727
* [driver] Have the crash diagnostics print the clang version information.Chad Rosier2012-05-231-0/+3
| | | | | | rdar://11518308 llvm-svn: 157346
* [driver] When creating the compiler invocation out of command-lineArgyrios Kyrtzidis2012-05-211-1/+1
| | | | | | | | arguments, force use of clang frontend for the driver. Fixes rdar://11356765. llvm-svn: 157205
* Pulls diagnostics for temp file handling into the common diagnostic kinds.Manuel Klimek2012-05-161-1/+1
| | | | llvm-svn: 156947
* StringRefize code because we're good even when we crash.Chad Rosier2012-05-041-6/+6
| | | | | | Patch by Jordy Rose. llvm-svn: 156172
* [driver - crash diagnostics] Convert the flags back to an array of strings ↵Chad Rosier2012-05-031-1/+13
| | | | | | | | | and use array_lengthof. Also, append the new filename with correct preprocessed suffix. Last part of rdar://11285725 llvm-svn: 156117
* [driver - crash diagnostics] Only write the failing command in the script.Chad Rosier2012-05-031-1/+6
| | | | | | Part of rdar://11285725 llvm-svn: 156096
* [driver crash diagnostics] Remove more flags that reference absolute paths thatChad Rosier2012-05-031-3/+16
| | | | | | | aren't necessary to reproduce the clang crash. Part of rdar://11285725 llvm-svn: 156079
OpenPOWER on IntegriCloud