summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Really respect -chained-pch.Sebastian Redl2010-07-091-7/+5
| | | | llvm-svn: 107993
* Add a frontend option -chained-pch and don't pass an active PCH reader to ↵Sebastian Redl2010-07-091-1/+3
| | | | | | the PCH writer if it is not set, preventing creation of chained PCH files. Since the reader is so far unused, effectively no functionality change. llvm-svn: 107936
* Some preparatory work for chained PCH. No functionality change.Sebastian Redl2010-07-081-2/+3
| | | | llvm-svn: 107915
* Break Frontend's dependency on Rewrite, Checker and CodeGen in shared ↵Daniel Dunbar2010-06-151-83/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | library configuration Currently, all AST consumers are located in the Frontend library, meaning that in a shared library configuration, Frontend has a dependency on Rewrite, Checker and CodeGen. This is suboptimal for clients which only wish to make use of the frontend. CodeGen in particular introduces a large number of unwanted dependencies. This patch breaks the dependency by moving all AST consumers with dependencies on Rewrite, Checker and/or CodeGen to their respective libraries. The patch therefore introduces dependencies in the other direction (i.e. from Rewrite, Checker and CodeGen to Frontend). After applying this patch, Clang builds correctly using CMake and shared libraries ("cmake -DBUILD_SHARED_LIBS=ON"). N.B. This patch includes file renames which are indicated in the patch body. Changes in this revision of the patch: - Fixed some copy-paste mistakes in the header files - Modified certain aspects of the coding to comply with the LLVM Coding Standards llvm-svn: 106010
* Preprocessor: Ignore unknown pragmas in -E -dM and -Eonly modes.Daniel Dunbar2010-06-111-0/+4
| | | | llvm-svn: 105830
* Teach clang -fixit to modify files in-place, or -fixit=suffix to create newNick Lewycky2010-04-241-69/+21
| | | | | | files with the additional suffix in the middle. llvm-svn: 102230
* push some source location information down through the compiler,Chris Lattner2010-04-201-8/+4
| | | | | | | | into ContentCache::getBuffer. This allows it to produce diagnostics on the broken #include line instead of without a location. llvm-svn: 101939
* Teach -fixit to modify all of its inputs instead of just the main file, unlessNick Lewycky2010-04-151-1/+45
| | | | | | -fixit-at specified a particular fixit to fix, or the -o flag was used. llvm-svn: 101359
* Fronted: Kill overly specialized RecordLayoutDumper, just make ↵Daniel Dunbar2010-04-081-5/+0
| | | | | | -dump-record-layouts a bit that Sema honors. llvm-svn: 100747
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-071-1/+1
| | | | llvm-svn: 100708
* clang -cc1: Kill off -empty-input only, and replace with -init-only which is anDaniel Dunbar2010-03-191-0/+12
| | | | | | | | actual action. - This is easier to use, and more reliable for timing the thing this was actually meant to be useful for. llvm-svn: 98978
* Entering the main source file in the preprocessor can fail if theDouglas Gregor2010-03-171-4/+8
| | | | | | source file has been changed. Handle that failure more gracefully. llvm-svn: 98727
* Frontend: Pull CodeGenAction out more, and eliminate CreateBackendConsumer.Daniel Dunbar2010-02-251-42/+0
| | | | | | | | | | This is the way I would like to move the frontend function towards -- distinct pieces of functionality should be exposed only via FrontendAction implementations which have clean and relatively-stable APIs. This also isolates the surface area in clang which depends on LLVM CodeGen. llvm-svn: 97110
* clang -cc1: Wire up -emit-obj, for emitting object files.Daniel Dunbar2010-02-031-0/+5
| | | | llvm-svn: 95182
* Fix <rdar://problem/7490212> clang rewriter: return of the mixed line ↵Steve Naroff2010-01-051-1/+3
| | | | | | | | | | endings, which is related to <rdar://problem/6596843> clang ObjC rewriter: Line endings still mixed in rewrite output This fix was dropped when I integrated the 'objective-rewrite' branch. llvm-svn: 92737
* Remove RewriteBlocks. It has been superseded by RewriteObjCKovarththanan Rajaratnam2009-12-231-5/+0
| | | | llvm-svn: 92014
* Fix CompilerInstance::createOutputFile to use proper diagnostics, and (try ↵Daniel Dunbar2009-12-031-12/+39
| | | | | | to) update all clients to be able to handle failure. llvm-svn: 90437
* Eliminate CodeGenOptions::TimePasses.Daniel Dunbar2009-11-301-1/+2
| | | | llvm-svn: 90118
* Fix PR5633 by making the preprocessor handle the case where we canChris Lattner2009-11-301-1/+2
| | | | | | | | | | stat a file but where mmaping it fails. In this case, we emit an error like: t.c:1:10: fatal error: error opening file '../../foo.h' instead of "cannot find file". llvm-svn: 90110
* Don't call exit(). llvm::llvm_report_error() will do just thatKovarththanan Rajaratnam2009-11-281-1/+0
| | | | llvm-svn: 90031
* typoGabor Greif2009-11-261-1/+1
| | | | llvm-svn: 89949
* issue a friendlier error if someone tries to send precompiled header to '-' ↵Gabor Greif2009-11-261-1/+1
| | | | | | | | | | | (stdout) this brings the error on clang -c foo.h -o - closer to clang -c foo.h -o /dev/null llvm-svn: 89948
* Fix some uses of fprintf/stderr without a prototype.Daniel Dunbar2009-11-251-2/+2
| | | | llvm-svn: 89858
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-151-2/+2
| | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
* Add FrontendActions for all preprocessor based clang-cc actions.Daniel Dunbar2009-11-141-1/+104
| | | | llvm-svn: 88774
* Add FrontendActions, which provides a FrontendAction interface to all the ↵Daniel Dunbar2009-11-141-0/+178
existing AST consumer based clang-cc actions. llvm-svn: 88773
OpenPOWER on IntegriCloud