Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove clang-cc tool, it has joined in unholy union with clang. | Daniel Dunbar | 2009-12-12 | 1 | -339/+0 |
| | | | | | | - tools/driver will be renamed to tools/clang at some point. llvm-svn: 91195 | ||||
* | Remove 'LangOpts' from Diagnostic (added in ↵ | Steve Naroff | 2009-12-05 | 1 | -2/+0 |
| | | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=90642). Simply use the 'LangOpts' member already present in TextDiagnosticPrinter. Sorry for the confusion! llvm-svn: 90664 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-05 | 1 | -0/+2 |
| | | | | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 Note - This commit only includes the fix for: <rdar://problem/6309338> slightly different error message format for Visual Studio. The fix for <rdar://problem/6845623> from protocol to template. is separate/forthcoming. llvm-svn: 90642 | ||||
* | Kill off one last exit() call. | Daniel Dunbar | 2009-12-03 | 1 | -1/+1 |
| | | | | llvm-svn: 90439 | ||||
* | clang-cc: Move to CompilerInvocation based command line parsing. | Daniel Dunbar | 2009-12-03 | 1 | -99/+3 |
| | | | | llvm-svn: 90426 | ||||
* | clang-cc: Honor -help and -version when using new style option parsing. | Daniel Dunbar | 2009-12-03 | 1 | -0/+16 |
| | | | | llvm-svn: 90422 | ||||
* | Add clang -cc1 -load option. | Daniel Dunbar | 2009-12-03 | 1 | -1/+12 |
| | | | | llvm-svn: 90413 | ||||
* | clang-cc: Add code (currently disabled) for parsing arguments using clang ↵ | Daniel Dunbar | 2009-11-30 | 1 | -0/+29 |
| | | | | | | | | -cc1 functionality instead of LLVM's CommandLine. - It works and passes test suite, but I want to polish and test a wee bit more before making the switch. llvm-svn: 90128 | ||||
* | Eliminate CodeGenOptions::TimePasses. | Daniel Dunbar | 2009-11-30 | 1 | -2/+1 |
| | | | | llvm-svn: 90118 | ||||
* | Simplify. | Daniel Dunbar | 2009-11-30 | 1 | -7/+5 |
| | | | | llvm-svn: 90115 | ||||
* | Put CompilerInvocation testing code in clang-cc instead of clang for now, I ↵ | Daniel Dunbar | 2009-11-30 | 1 | -0/+82 |
| | | | | | | | | can't bear to link all of clang into 'clang' yet. :) - Still triggered by a magic leading -cc1 argument, as before. llvm-svn: 90114 | ||||
* | This patch moves the frontend timer from clang-cc into CompilerInstance. | Kovarththanan Rajaratnam | 2009-11-29 | 1 | -9/+1 |
| | | | | | | | | | | | CompilerInstance already contains various objects that are used throughout the entire run. Also addresses Daniels review comments in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091123/024508.html llvm-svn: 90073 | ||||
* | Move program actions implications to clang::InitializeFrontendOptions which ↵ | Kovarththanan Rajaratnam | 2009-11-28 | 1 | -6/+0 |
| | | | | | | already contains such logic. llvm-svn: 90029 | ||||
* | Add a missing include <cstdio> | Daniel Dunbar | 2009-11-25 | 1 | -0/+1 |
| | | | | llvm-svn: 89859 | ||||
* | clang-cc: Lift setForcedLangOptions out of options initialization. | Daniel Dunbar | 2009-11-20 | 1 | -17/+21 |
| | | | | llvm-svn: 89462 | ||||
* | Fix -Asserts warning. | Daniel Dunbar | 2009-11-17 | 1 | -1/+1 |
| | | | | llvm-svn: 89149 | ||||
* | Trim includes. | Daniel Dunbar | 2009-11-16 | 1 | -12/+2 |
| | | | | llvm-svn: 88982 | ||||
* | Store more information in HeaderSearchOptions so that its initialization is not | Daniel Dunbar | 2009-11-16 | 1 | -15/+10 |
| | | | | | | language dependent. llvm-svn: 88981 | ||||
* | clang-cc: Eliminate cyclic dependency in initializing CodeGenOptions. | Daniel Dunbar | 2009-11-16 | 1 | -12/+5 |
| | | | | llvm-svn: 88980 | ||||
* | Add TargetOptions and use it when constructing targets. | Daniel Dunbar | 2009-11-15 | 1 | -26/+10 |
| | | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833 | ||||
* | Add pluggable action support to clang-cc, via -plugin command line option. | Daniel Dunbar | 2009-11-15 | 1 | -6/+36 |
| | | | | | | | | - Expects the plugin has been loaded with -load. - Using this may require disabling TOOL_NO_EXPORTS in the clang-cc Makefile, this breaks the llvm::Registry way of working (static constructors are bad, kids). This should be replaced with a "real" plugin model that has explicit plugin interfaces. llvm-svn: 88824 | ||||
* | Move the program action enum to FrontendOptions. | Daniel Dunbar | 2009-11-14 | 1 | -98/+8 |
| | | | | | | | | | -- ddunbar@giles:clang-cc (master)$ grep llvm::cl::opt clang-cc.cpp # Woot ddunbar@giles:clang-cc (master)$ -- llvm-svn: 88820 | ||||
* | clang-cc: Switch to using FrontendAction. Whee. | Daniel Dunbar | 2009-11-14 | 1 | -410/+59 |
| | | | | | | Please report any discrepancies you see in clang-cc, I'm not confident that our regression tests cover all the fun ways one can use clang-cc. llvm-svn: 88776 | ||||
* | Add CompilerInstance::InitializeSourceManager. | Daniel Dunbar | 2009-11-14 | 1 | -32/+1 |
| | | | | llvm-svn: 88764 | ||||
* | Turn -fixit it back into a mode, but make -fixit-at imply that mode this time | Daniel Dunbar | 2009-11-14 | 1 | -36/+33 |
| | | | | | | | (instead of running it with arbitrary consumers). - Also, turn any -fixit-at lookup failure into an error. llvm-svn: 88757 | ||||
* | Switch -verify implementation to use VerifyDiagnosticClient. | Daniel Dunbar | 2009-11-14 | 1 | -12/+7 |
| | | | | | | - Not tested, but -verify with multiple inputs should work now. llvm-svn: 88750 | ||||
* | Pass Preprocessor through DiagnosticClient::BeginSourceFile. | Daniel Dunbar | 2009-11-14 | 1 | -2/+3 |
| | | | | llvm-svn: 88744 | ||||
* | Add CompilerInstance utility functions for creating output files. | Daniel Dunbar | 2009-11-13 | 1 | -48/+16 |
| | | | | llvm-svn: 88667 | ||||
* | Add output file list to CompilerInstance, so that it can track them instead of | Daniel Dunbar | 2009-11-13 | 1 | -70/+45 |
| | | | | | | forcing all clients to do it. llvm-svn: 87103 | ||||
* | clang-cc: Move output file initialization closer to use. | Daniel Dunbar | 2009-11-13 | 1 | -13/+12 |
| | | | | llvm-svn: 87102 | ||||
* | Simplify, in anticipation of introducing explicit action instances. | Daniel Dunbar | 2009-11-13 | 1 | -19/+16 |
| | | | | llvm-svn: 87101 | ||||
* | Add CodeCompletion consumer to CompilerInvocation. | Daniel Dunbar | 2009-11-13 | 1 | -27/+5 |
| | | | | llvm-svn: 87100 | ||||
* | Rework Sema code completion interface. | Daniel Dunbar | 2009-11-13 | 1 | -18/+10 |
| | | | | | | | | | | | | | - Provide Sema in callbacks, instead of requiring it in constructor. This eliminates the need for a factory function. Clients now just pass the object to consume the results in directly. - CodeCompleteConsumer is cheap to construct, so building it whenever we are doing code completion is reasonable. Doug, please review. llvm-svn: 87099 | ||||
* | Add CompilerInstance::createPCHExternalASTSource. | Daniel Dunbar | 2009-11-13 | 1 | -45/+2 |
| | | | | llvm-svn: 87097 | ||||
* | Add CompilerInstance::has* methods for testing if the instance has a particular | Daniel Dunbar | 2009-11-13 | 1 | -2/+2 |
| | | | | | | subobject. llvm-svn: 87096 | ||||
* | Add ASTContext to CompilerInstance. | Daniel Dunbar | 2009-11-13 | 1 | -14/+7 |
| | | | | llvm-svn: 87095 | ||||
* | Add CompilerInstance::createDiagnostics, and move clang-cc to it. | Daniel Dunbar | 2009-11-13 | 1 | -75/+8 |
| | | | | | | clang-cc.cpp is now under 1k lines, if anyone is counting. llvm-svn: 87090 | ||||
* | Add a FIXME. | Daniel Dunbar | 2009-11-13 | 1 | -0/+4 |
| | | | | llvm-svn: 87089 | ||||
* | Add Preprocessor to CompilerInstance, and move clang-cc CreatePreprocessor to | Daniel Dunbar | 2009-11-13 | 1 | -53/+8 |
| | | | | | | CompilerInstance::createPreprocessor. llvm-svn: 87088 | ||||
* | Wherein the TargetInfo argument to Preprocessor is made 'const' and propogated. | Daniel Dunbar | 2009-11-13 | 1 | -1/+1 |
| | | | | llvm-svn: 87087 | ||||
* | Add {File,Source}Manager to CompilerInstance. | Daniel Dunbar | 2009-11-13 | 1 | -10/+11 |
| | | | | llvm-svn: 87079 | ||||
* | Add CompilerInstance, and starting moving clang-cc to it. | Daniel Dunbar | 2009-11-13 | 1 | -81/+77 |
| | | | | | | | - The design philosophy is in the CompilerInstance doxyment, if you don't agree with it now would be a good time to speak up. llvm-svn: 87078 | ||||
* | Move input kind identification (-x) into FrontendOptions. | Daniel Dunbar | 2009-11-13 | 1 | -78/+15 |
| | | | | llvm-svn: 87066 | ||||
* | Move -target-{triple,abi} options into FrontendOptions. | Daniel Dunbar | 2009-11-13 | 1 | -39/+36 |
| | | | | llvm-svn: 87051 | ||||
* | Move code completion options to clang-cc | Daniel Dunbar | 2009-11-13 | 1 | -56/+21 |
| | | | | llvm-svn: 87050 | ||||
* | Move FixItAtLocations into FrontendOptions | Daniel Dunbar | 2009-11-12 | 1 | -18/+12 |
| | | | | llvm-svn: 87046 | ||||
* | clang-cc: Keep Verbose option with HeaderSearchOptions, for now. | Daniel Dunbar | 2009-11-12 | 1 | -10/+6 |
| | | | | llvm-svn: 87045 | ||||
* | Add FrontendOptions, and starting moving clang-cc to it. | Daniel Dunbar | 2009-11-12 | 1 | -109/+67 |
| | | | | llvm-svn: 87044 | ||||
* | Move CompileOptions -> CodeGenOptions, and sink it into the CodeGen library. | Chandler Carruth | 2009-11-12 | 1 | -5/+5 |
| | | | | | | This resolves the layering violation where CodeGen depended on Frontend. llvm-svn: 86998 | ||||
* | Disallow FIX-ITs when generating code. | Daniel Dunbar | 2009-11-12 | 1 | -0/+6 |
| | | | | llvm-svn: 86990 |