summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Job.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Driver: Skip the -fmodules-cache-path argument in driver crash diagsJustin Bogner2014-04-221-1/+2
| | | | | | | The modules cache path shouldn't be included in crash reports, as it's a system (or run) specific directory. llvm-svn: 206922
* clang-cl /fallback: turn the note into a warningHans Wennborg2014-02-191-2/+1
| | | | llvm-svn: 201626
* clang-cl /fallback: emit a note when falling backHans Wennborg2014-02-181-0/+8
| | | | | | This makes it a lot easier to see what's going on from the output. llvm-svn: 201604
* clang-cl: implement /fallback modeHans Wennborg2013-09-191-0/+37
| | | | | | | | | | | | | When this flag is enabled, clang-cl falls back to cl.exe if it cannot compile the code itself for some reason. The idea is to use this to help build projects that almost compile with clang-cl, except for some files that can then be built with the fallback mechanism. Differential Revision: http://llvm-reviews.chandlerc.com/D1711 llvm-svn: 191034
* Add comment about exporting clang::driver::ArgStringList,Hans Wennborg2013-09-181-2/+2
| | | | | | | | | | as suggested by Jordan on IRC. Also, use the unqualified name in Job.cpp. And while we're here, refer to StringRef with the unqualified name, because we have a using directive for that too. llvm-svn: 190909
* Revert r190902 and r190906Hans Wennborg2013-09-181-2/+3
| | | | | | The first one broke the build, and the latter one made it worse. llvm-svn: 190907
* Revert "Move using directive from Job.h to Job.cpp" (r190902)Hans Wennborg2013-09-181-1/+0
| | | | | | | | | | Seems like it was intentional to export ArgStringList as driver::ArgStringList, and e.g. examples/clang-interpreter/main.cpp uses it this way. However, exporting it with a typedef seems like a more common way to do it. llvm-svn: 190906
* Move using directive from Job.h to Job.cppHans Wennborg2013-09-171-3/+3
| | | | | | I don't think it belongs in the header, but seems handy in the .cpp file. llvm-svn: 190902
* Move the execution code from Compilation::ExecuteCommand to Command::ExecuteHans Wennborg2013-09-121-0/+14
| | | | | | | | | | | | | | I think it makes sense that a Command knows how to execute itself. There's no functionality change but i rewrote the code to avoid the manual memory management of Argv. My motivation for this is that I plan to subclass Command to build fall-back functionality into clang-cl. Differential Revision: http://llvm-reviews.chandlerc.com/D1654 llvm-svn: 190621
* Move Compilation::PrintJob and PrintDiagnosticJob into Job::Print.Hans Wennborg2013-09-121-2/+98
| | | | | | | | | | | | | | | | | This moves the code to Job.cpp, which seems like a more natural fit, and replaces the "is this a JobList? is this a Command?" logic with a virtual function call. It also removes the code duplication between PrintJob and PrintDiagnosticJob and simplifies the code a little. There's no functionality change here, except that the Executable is now always printed within quotes, whereas it would previously not be quoted in crash reports, which I think was a bug. Differential Revision: http://llvm-reviews.chandlerc.com/D1653 llvm-svn: 190620
* Remove unused method Job::AddCommand.Hans Wennborg2013-09-061-5/+0
| | | | | | | | I was going to update the comment referring to PipedJob, which was removed some time ago, but then it turned out that this method is not actually used at all. llvm-svn: 190171
* [Driver] Refactor clang driver to use LLVM's Option libraryReid Kleckner2013-06-141-5/+4
| | | | | | | | | | | | | | | | | | The big changes are: - Deleting Driver/(Arg|Opt)* - Rewriting includes to llvm/Option/ and re-sorting - 'using namespace llvm::opt' in clang::driver - Fixing the autoconf build by adding option everywhere As discussed in the review, this change includes using directives in header files. I'll make follow up changes to remove those in favor of name specifiers. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D975 llvm-svn: 183989
* Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth2012-12-041-2/+0
| | | | | | | | | | | | | 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
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+2
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146959
* When the compiler crashes, the compiler driver now produces diagnostic Chad Rosier2011-08-021-0/+6
| | | | | | | | | 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
* Temporarily revert r135614 while I fix the cmake build.Chad Rosier2011-07-201-6/+0
| | | | llvm-svn: 135621
* When the compiler crashes, the compiler driver now produces diagnostic ↵Chad Rosier2011-07-201-0/+6
| | | | | | | | | 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
* 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
* Driver: Eliminate PipedJob, which is now unused.Daniel Dunbar2010-08-021-11/+1
| | | | llvm-svn: 110014
* Driver: Free jobs in JobList and PipedJob instances.Daniel Dunbar2010-03-111-0/+10
| | | | llvm-svn: 98261
* Driver: Add Command::Creator member variable, which tracks the tool that wasDaniel Dunbar2009-12-021-4/+5
| | | | | | used to create a particular command. llvm-svn: 90287
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-3/+3
| | | | llvm-svn: 81346
* Driver: Add Source argument for Commands to hold the Action which caused aDaniel Dunbar2009-07-011-2/+4
| | | | | | | Command to be generated, to support more advanced diagnostics. - No functionality change. llvm-svn: 74627
* Driver: ConstructJob also needs to know the destination (where to putDaniel Dunbar2009-03-181-0/+8
| | | | | | its commands). llvm-svn: 67179
* Driver: Rename Command::Argv to Command::Arguments to make it clearerDaniel Dunbar2009-03-181-2/+2
| | | | | | | that this does not include the implicit first argument (the executable name). llvm-svn: 67172
* Driver: Add simple Job classes, simple wrappers for information aboutDaniel Dunbar2009-03-131-0/+23
what processes to execute during a compilation. llvm-svn: 66985
OpenPOWER on IntegriCloud