summaryrefslogtreecommitdiffstats
path: root/clang/tools/driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert r108617, it broke the build.Benjamin Kramer2010-07-171-2/+2
| | | | llvm-svn: 108621
* Fix cmake build.Zhongxing Xu2010-07-171-0/+1
| | | | llvm-svn: 108619
* Prepare the analyzer for the callee in another translation unit:Zhongxing Xu2010-07-171-2/+2
| | | | | | | Let AnalysisContext contain a TranslationUnit. Let CallEnter refer to an AnalysisContext instead of a FunctionDecl. llvm-svn: 108617
* clang -cc1as: Switch to using AsmParser constructor function.Daniel Dunbar2010-07-171-5/+7
| | | | llvm-svn: 108605
* build/Darwin: Add missing Info.plist template.Daniel Dunbar2010-07-151-0/+18
| | | | llvm-svn: 108457
* build/Darwin: Enable version information for clang executable.Daniel Dunbar2010-07-151-0/+26
| | | | llvm-svn: 108445
* Clang do so have plugins, we can't prune exports. Fixes plugin support.Nick Lewycky2010-07-101-3/+0
| | | | llvm-svn: 108054
* MC: Pass the target instance to the AsmParser constructor.Daniel Dunbar2010-07-011-1/+1
| | | | llvm-svn: 107427
* Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy ↵Daniel Dunbar2010-06-161-11/+5
| | | | | | Straszheim! llvm-svn: 106113
* Break Frontend's dependency on Rewrite, Checker and CodeGen in shared ↵Daniel Dunbar2010-06-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Driver: Fix arg_iterator typing to reflect that it is really an iterator ↵Daniel Dunbar2010-06-111-3/+4
| | | | | | over Arg*s. llvm-svn: 105838
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-081-1/+0
| | | | | | scattered throughout the project Makefiles. llvm-svn: 105638
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-081-3/+3
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Frontend: Add CodeGenAction support for handling LLVM IR.Daniel Dunbar2010-06-072-1/+3
| | | | | | | | | | | | | | | | | - This magically enables using 'clang -cc1' as a replacement for most of 'llvm-as', 'llvm-dis', 'llc' and 'opt' functionality. For example, 'llvm-as' is: $ clang -cc1 -emit-llvm-bc FOO.ll -o FOO.bc and 'llvm-dis' is: $ clang -cc1 -emit-llvm FOO.bc -o - and 'opt' is, e.g.: $ clang -cc1 -emit-llvm -O3 -o FOO.opt.ll FOO.ll and 'llc' is, e.g.: $ clang -cc1 -S -o - FOO.ll The nice thing about using the backend tools this way is that they are guaranteed to exactly match how the compiler generates code (for example, setting the same backend options). llvm-svn: 105583
* Driver/Frontend: Add -emit-codegen-only, for running irgen + codegen but not theDaniel Dunbar2010-05-251-0/+1
| | | | | | .s printer or .o writer. llvm-svn: 104623
* clang -cc1as: Add -help, -version, and -mllvm support.Daniel Dunbar2010-05-201-1/+39
| | | | | | Also, fix output defaulting to match llvm-mc. llvm-svn: 104246
* Driver/MC: Add 'clang -cc1as' integrated assembler tool, currently accepts ↵Daniel Dunbar2010-05-204-6/+355
| | | | | | approximately the same interface as 'llvm-mc'. llvm-svn: 104239
* Add a stub frontend action for BoostCon, for next week's workshop.Douglas Gregor2010-05-071-0/+1
| | | | llvm-svn: 103258
* CMake: Fix DESTDIR-related installation problem on Windows, from theDouglas Gregor2010-04-271-1/+2
| | | | | | mysterious Elrood on IRC. llvm-svn: 102435
* Fix -Wcast-qual warnings.Dan Gohman2010-04-191-1/+1
| | | | llvm-svn: 101786
* Driver/Frontend: Add support for -mllvm, which forwards options to the LLVM ↵Daniel Dunbar2010-04-151-0/+13
| | | | | | | | option parser. - Note that this is a behavior change, previously -mllvm at the driver level forwarded to clang -cc1. The driver does a little magic to make sure that '-mllvm -disable-llvm-optzns' works correctly, but other users will need to be updated to use -Xclang. llvm-svn: 101354
* Fronted: Kill overly specialized RecordLayoutDumper, just make ↵Daniel Dunbar2010-04-081-1/+0
| | | | | | -dump-record-layouts a bit that Sema honors. llvm-svn: 100747
* update for api change.Chris Lattner2010-04-071-1/+1
| | | | llvm-svn: 100718
* reduce indentation, tidy.Chris Lattner2010-04-061-1/+1
| | | | llvm-svn: 100537
* inline in MC assembly parsers. clang -integrated-as nowChris Lattner2010-04-051-0/+1
| | | | | | works with inline asm! llvm-svn: 100493
* Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enableDaniel Dunbar2010-04-012-2/+15
| | | | | | Clang++ support, even in "Production" mode (for testing purposes). llvm-svn: 100119
* Teach Clang's -cc1 option -print-stats to print LLVM statistics.Douglas Gregor2010-03-301-0/+3
| | | | llvm-svn: 99894
* make -ftime-report work even in -disable-free mode. Woo, finally.Chris Lattner2010-03-302-6/+18
| | | | | | rdar://7781603 llvm-svn: 99878
* Frontend: Don't free the CompilerInstance or FrontendActions when running underDaniel Dunbar2010-03-231-18/+27
| | | | | | | | -disable-free. Among other things, this fixes freeing of the LLVM module on exit. - Note that this means we are disable-free'ing of a lot more stuff than we used to -- this should flush out bugs in anything left that is trying to do real work in its destructor. I did a mini-audit but '::~' is not totally uncommon. llvm-svn: 99258
* Driver: Support CC_PRINT_OPTIONS, used for logging the compile commands (in ↵Daniel Dunbar2010-03-201-0/+5
| | | | | | -v style) to a file. llvm-svn: 99054
* clang -cc1: Kill off -empty-input only, and replace with -init-only which is anDaniel Dunbar2010-03-191-0/+1
| | | | | | | | 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
* Allow users to set CPPFLAGS and CXXFLAGS on the make command line.Jeffrey Yasskin2010-03-121-1/+1
| | | | | Tested: make CPPFLAGS=-m64 CXXFLAGS=-m64 -j8 && (cd tools/clang;make test) llvm-svn: 98399
* Mark variable as constKovarththanan Rajaratnam2010-03-081-2/+2
| | | | llvm-svn: 97951
* Frontend: Pull CodeGenAction out more, and eliminate CreateBackendConsumer.Daniel Dunbar2010-02-251-0/+1
| | | | | | | | | | 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
* Driver: Use TextDiagnosticPrinter instead of a custom one.Daniel Dunbar2010-02-251-33/+4
| | | | llvm-svn: 97102
* Remove unused includes.Daniel Dunbar2010-02-211-2/+0
| | | | llvm-svn: 96760
* clang: Add support for s// edit form of QA_OVERRIDE_GCC3_OPTIONS.Daniel Dunbar2010-02-171-7/+22
| | | | | | - Used to do regex patsubst on arguments. llvm-svn: 96512
* CompilerInstance: Move LLVMContext member out of constructor.Daniel Dunbar2010-02-161-1/+3
| | | | llvm-svn: 96314
* Switch clang to use its own LLVMContext (not the global one).Daniel Dunbar2010-02-161-1/+1
| | | | llvm-svn: 96313
* Introduce a testbed for merging multiple ASTs into a single ASTDouglas Gregor2010-02-091-1/+16
| | | | | | | context with the AST importer. WIP, still useless but at least it has a test. llvm-svn: 95683
* clang -cc1: Wire up -emit-obj, for emitting object files.Daniel Dunbar2010-02-031-0/+1
| | | | llvm-svn: 95182
* Bring driver link order in CMake into alignment with the order in the Makefile.Chandler Carruth2010-01-291-2/+2
| | | | | | | This includes the fix in r94797 to reflect the new dependency of Sema on Analysis. llvm-svn: 94806
* Fix linking problem on Linux.Zhongxing Xu2010-01-291-2/+2
| | | | llvm-svn: 94797
* Split libAnalysis into two libraries: libAnalysis and libChecker.Ted Kremenek2010-01-252-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | (1) libAnalysis is a generic analysis library that can be used by Sema. It defines the CFG, basic dataflow analysis primitives, and inexpensive flow-sensitive analyses (e.g. LiveVariables). (2) libChecker contains the guts of the static analyzer, incuding the path-sensitive analysis engine and domain-specific checks. Now any clients that want to use the frontend to build their own tools don't need to link in the entire static analyzer. This change exposes various obvious cleanups that can be made to the layout of files and headers in libChecker. More changes pending. :) This change also exposed a layering violation between AnalysisContext and MemRegion. BlockInvocationContext shouldn't explicitly know about BlockDataRegions. For now I've removed the BlockDataRegion* from BlockInvocationContext (removing context-sensitivity; although this wasn't used yet). We need to have a better way to extend BlockInvocationContext (and any LocationContext) to add context-sensitivty. llvm-svn: 94406
* -fno-rtti is now the default.Chris Lattner2010-01-241-1/+0
| | | | llvm-svn: 94379
* Make CMake's clang++ installation respect DESTDIR, based on a patch byDouglas Gregor2010-01-181-1/+1
| | | | | | Ingmar Vanhassel. Fixes PR6046. llvm-svn: 93741
* Don't build/install clang++ in CLANG_IS_PRODUCTION build mode yet.Daniel Dunbar2010-01-181-0/+2
| | | | llvm-svn: 93732
* cc1: Factor out CompilerInstance::ExecuteAction which has the majority of theDaniel Dunbar2010-01-131-87/+13
| | | | | | | | clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a clang -cc1 like interface, but aren't actually part of clang -cc1. llvm-svn: 93282
* cc1: Lift creation of the FrontendAction higher.Daniel Dunbar2010-01-131-7/+6
| | | | llvm-svn: 93281
* Driver: Use "g++" as generic gcc name when running in C++ mode, for platformsDaniel Dunbar2009-12-251-1/+3
| | | | | | that lack real tool definitions. llvm-svn: 92164
OpenPOWER on IntegriCloud