summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove clang-cc tool, it has joined in unholy union with clang.Daniel Dunbar2009-12-123-402/+0
| | | | | | - tools/driver will be renamed to tools/clang at some point. llvm-svn: 91195
* Remove 'LangOpts' from Diagnostic (added in ↵Steve Naroff2009-12-051-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 Naroff2009-12-051-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 Dunbar2009-12-031-1/+1
| | | | llvm-svn: 90439
* clang-cc: Move to CompilerInvocation based command line parsing.Daniel Dunbar2009-12-034-1437/+3
| | | | llvm-svn: 90426
* clang-cc: Honor -help and -version when using new style option parsing.Daniel Dunbar2009-12-031-0/+16
| | | | llvm-svn: 90422
* Add clang -cc1 -load option.Daniel Dunbar2009-12-031-1/+12
| | | | llvm-svn: 90413
* Change rtti/Rtti to RTTI, as it is an acronym.Mike Stump2009-12-021-2/+2
| | | | llvm-svn: 90334
* Introduce a new clang-cc option Douglas Gregor2009-12-021-0/+18
| | | | | | | | | | | | | | | | | | -remap-file=from;to which takes the file "from" and transparently replaces its contents with the contents of the file "to" from the source manager's perspective. This is the moral equivalent of cp from saved cp to from <call clang> cp saved from rm saved without all of the pesky file copying. llvm-svn: 90307
* libFrontend depends on libDriver now.Zhongxing Xu2009-12-021-1/+1
| | | | llvm-svn: 90295
* clang-cc: Add code (currently disabled) for parsing arguments using clang ↵Daniel Dunbar2009-11-301-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
* Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵Daniel Dunbar2009-11-301-1/+9
| | | | | | many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127
* Don't try to generate common globals for C++ files, instead of depending on ↵Daniel Dunbar2009-11-301-4/+0
| | | | | | the FE to set NoCommon, and simplify CodeGenOptions initialization. llvm-svn: 90119
* Eliminate CodeGenOptions::TimePasses.Daniel Dunbar2009-11-303-7/+3
| | | | llvm-svn: 90118
* Eliminate CodeGenOptions::SimplifyLibCalls.Daniel Dunbar2009-11-301-3/+0
| | | | llvm-svn: 90117
* Simplify.Daniel Dunbar2009-11-301-7/+5
| | | | llvm-svn: 90115
* Put CompilerInvocation testing code in clang-cc instead of clang for now, I ↵Daniel Dunbar2009-11-303-1/+84
| | | | | | | | 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 Rajaratnam2009-11-291-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 LLVM backend options to explicit clang-cc / clang -cc1 options, which ↵Daniel Dunbar2009-11-291-0/+41
| | | | | | we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine. llvm-svn: 90063
* Add clang -cc1 parsing for LangOptions.Daniel Dunbar2009-11-291-9/+1
| | | | | | - This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059
* clang-cc: Tweak LangOptions parsing to make it a bit more obvious what ↵Daniel Dunbar2009-11-291-15/+15
| | | | | | depends on what. llvm-svn: 90058
* clang-cc: Change -fsigned-char=0 to -fno-unsigned-char and pass -pic-level ↵Daniel Dunbar2009-11-291-4/+3
| | | | | | using separate args. llvm-svn: 90054
* Move MainFileName option variable into CodeGenOptions instead of LangOptions.Daniel Dunbar2009-11-291-24/+24
| | | | llvm-svn: 90051
* Move program actions implications to clang::InitializeFrontendOptions which ↵Kovarththanan Rajaratnam2009-11-282-12/+9
| | | | | | already contains such logic. llvm-svn: 90029
* Simplify.Daniel Dunbar2009-11-271-28/+9
| | | | llvm-svn: 89998
* Factor out a LangStandard class and coalesce the information about the ↵Daniel Dunbar2009-11-261-95/+24
| | | | | | | | standards into LangStandards.def - I'd appreciate another pair of eyeballs to double check this. llvm-svn: 89919
* Add a missing include <cstdio>Daniel Dunbar2009-11-251-0/+1
| | | | llvm-svn: 89859
* Sketch the rest of the clang -cc1 option definitions, aka fun with C-x C-(.Daniel Dunbar2009-11-241-0/+1
| | | | llvm-svn: 89721
* Add clang -cc1 parsing of analyzer options.Daniel Dunbar2009-11-221-2/+2
| | | | llvm-svn: 89629
* Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.Daniel Dunbar2009-11-201-1/+1
| | | | llvm-svn: 89498
* clang-cc: Lift setForcedLangOptions out of options initialization.Daniel Dunbar2009-11-203-25/+23
| | | | llvm-svn: 89462
* clang-cc: Remove some more llvm::cl::init arguments, by only setting values whenDaniel Dunbar2009-11-191-18/+22
| | | | | | | | the argument is given. Also, tweak Opt.Sysroot defaulting. llvm-svn: 89318
* Change -code-completion-debug-printer to -no-code-completion-debug-printer.Daniel Dunbar2009-11-191-7/+6
| | | | | | Also, tweak a few help strings and update CompilerInvocation serialization for prev change. llvm-svn: 89317
* Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... ↵Daniel Dunbar2009-11-191-11/+9
| | | | | | variants instead of using llvm::cl::init(true) arguments. llvm-svn: 89315
* clang-cc: Remove superfluous llvm::cl::init(false) arguments.Daniel Dunbar2009-11-191-14/+7
| | | | llvm-svn: 89314
* Fix -Asserts warning.Daniel Dunbar2009-11-171-1/+1
| | | | llvm-svn: 89149
* Eliminate TargetInfo::getDefaultLangOptions, this kind of logic is better doneDaniel Dunbar2009-11-171-3/+0
| | | | | | in the driver. llvm-svn: 89073
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-171-8/+1
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. llvm-svn: 89058
* Simplify PreprocessorOptions, it doesn't need abstracted field access.Daniel Dunbar2009-11-171-7/+7
| | | | llvm-svn: 89047
* Move InitializeAnalyzerOptions for consistency.Daniel Dunbar2009-11-171-19/+18
| | | | llvm-svn: 89040
* Remove unused NoPreprocess variable.Daniel Dunbar2009-11-171-5/+0
| | | | llvm-svn: 89039
* Remove unused IsCXXAware and IgnoreSysRoots option from ↵Daniel Dunbar2009-11-171-10/+9
| | | | | | HeaderSearchOptions::Entry. llvm-svn: 89035
* Trim includes.Daniel Dunbar2009-11-161-12/+2
| | | | llvm-svn: 88982
* Store more information in HeaderSearchOptions so that its initialization is notDaniel Dunbar2009-11-163-32/+20
| | | | | | language dependent. llvm-svn: 88981
* clang-cc: Eliminate cyclic dependency in initializing CodeGenOptions.Daniel Dunbar2009-11-163-22/+25
| | | | llvm-svn: 88980
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-153-85/+50
| | | | | | | | - 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 Dunbar2009-11-152-7/+49
| | | | | | | | - 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 Dunbar2009-11-142-98/+69
| | | | | | | | | -- 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 Dunbar2009-11-141-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 Dunbar2009-11-141-32/+1
| | | | llvm-svn: 88764
OpenPOWER on IntegriCloud