summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Move ASTConsumers.h to include/clang/Frontend, and move the associated Eli Friedman2009-05-187-7559/+0
| | | | | | .cpp files to lib/Frontend. (As proposed on cfe-dev.) llvm-svn: 72060
* Move the Wno-rewrite-macros option out of RewriteObjC.cpp in prepration Eli Friedman2009-05-183-12/+23
| | | | | | for moving ASTConsumers.h to include/clang/Frontend. llvm-svn: 72059
* Rename the factory function for the ObjC rewriter to something sane.Eli Friedman2009-05-183-11/+10
| | | | llvm-svn: 72055
* Move AnalysisConsumer out of ASTConsumers.h in preparation for moving Eli Friedman2009-05-183-8/+11
| | | | | | ASTConsumers.h to include/clang/Frontend. llvm-svn: 72054
* Refactor ASTConsumers to take a raw_ostream instead of a filename where Eli Friedman2009-05-187-187/+156
| | | | | | appropriate. There shouldn't be any significant functionality change. llvm-svn: 72052
* Remove unused parameter.Eli Friedman2009-05-181-6/+4
| | | | llvm-svn: 71996
* Add some comments to ASTConsumers.h describing what the different Eli Friedman2009-05-181-6/+35
| | | | | | ASTConsumers actually do. llvm-svn: 71992
* Make ActOnWhileStmt take a FullExprArg for the condition expr.Anders Carlsson2009-05-171-1/+1
| | | | llvm-svn: 71990
* Make ActOnExprStmt take a FullExprArg.Anders Carlsson2009-05-171-2/+2
| | | | llvm-svn: 71989
* Add the FullExprArg wrapper and use it for if statement conditions.Anders Carlsson2009-05-171-2/+3
| | | | llvm-svn: 71982
* A couple of tweaks to make -ast-print produce code that's closer to Eli Friedman2009-05-171-13/+14
| | | | | | valid C code. llvm-svn: 71971
* Implement a FIXME, we now pass in the locations of the braces for enums.Mike Stump2009-05-161-8/+9
| | | | llvm-svn: 71930
* Disable access control by default. It can be enabled with the ↵Anders Carlsson2009-05-131-0/+8
| | | | | | -faccess-control option. When we have better support for it, we can enable it by default again. llvm-svn: 71706
* remove the obsolete -fprint-source-range-info optionChris Lattner2009-05-131-5/+0
| | | | llvm-svn: 71675
* Make precompiled headers work with -E. When we're only preprocessingDouglas Gregor2009-05-121-3/+16
| | | | | | | (with -E), we turn the PCH include into an implicit include of the file from which the PCH file was generated. llvm-svn: 71534
* Move terminal-width computation over to llvm::sys. Update to LLVMDouglas Gregor2009-05-111-36/+1
| | | | | | r71448 required. Fixes PR 4148 and PR 4183. llvm-svn: 71450
* Remove -fobjc-tight-layout, seems to work!Daniel Dunbar2009-05-071-6/+0
| | | | llvm-svn: 71184
* Fix <rdar://problem/6848739>. When using -analyze, -Werror has no effect.Ted Kremenek2009-05-071-0/+3
| | | | llvm-svn: 71172
* If stderr isn't a terminal, don't try to guess the terminal width orDaniel Dunbar2009-05-061-4/+4
| | | | | | look at COLUMNS. llvm-svn: 71120
* More x86 target feature support.Daniel Dunbar2009-05-061-9/+3
| | | | | | | | | | | | | | | | | | - Apologies for the extremely gross code duplication, I want to get this working and then decide how to get this information out of the back end. - This replaces -m[no-]sse4[12] by -m[no-]sse4, it appears gcc doesn't distinguish them? - -msse, etc. now properly disable/enable related features. - Don't always define __SSE3__... - The main missing functionality bit here is that we don't initialize the features based on the CPU for all -march options. llvm-svn: 71117
* daniel is buggy :)Chris Lattner2009-05-061-1/+1
| | | | llvm-svn: 71065
* Add missing include.Daniel Dunbar2009-05-061-0/+1
| | | | llvm-svn: 71063
* Cleanup some FIXMEs.Daniel Dunbar2009-05-061-13/+4
| | | | llvm-svn: 71062
* Improve handling of (X86) target features.Daniel Dunbar2009-05-061-34/+67
| | | | | | | | | | | | | | | | | | | | | - This is a WIP... - This adds -march= handling to the driver, and fixes the defaulting of -mcpu on Darwin (which was using the wrong test). Instead of handling -m{sse, ...} in the driver, pass them to clang-cc as -target-feature [+-]name In clang-cc, communicate with the (clang) target to discover the legal features of a target, and the features which are enabled based on -mcpu. This is currently hardcoded just enough to not be a feature regression, we need to get this information from the backend's TableGen information somehow. This is used to construct the full list of features which are being used, which is in turn used to initialize the predefines. llvm-svn: 71061
* Enable tight Objective-C interface layout unconditionally.Daniel Dunbar2009-05-051-2/+1
| | | | | | | - I will remove the flag when I'm comfortable there is no fallout from this. llvm-svn: 70993
* Add -fobjc-tight-layout.Daniel Dunbar2009-05-041-0/+8
| | | | | | | | | | | | | | | | | | | - This implements gcc style Objective-C interface layout (I think). Currently it is always off, there is no functionality change unless this is passed. For the curious, the deal is that gcc lays out the fields of a subclass as if they were part of the superclass. That is, the subclass fields immediately follow the super class fields instead of being padded to the alignment of the superclass structure. - Currently gcc uses the tight layout in 32-bit and 64-bit modes, and llvm-gcc uses it in 32-bit only, for reasons which aren't clear yet. We probably want to switch to matching gcc, once this makes it through testing... my hope is that we can also fix llvm-gcc in order to maintain compatibility between the compilers. llvm-svn: 70827
* PR4063, with feeling: Chain PP callbacks by default.Daniel Dunbar2009-05-031-44/+3
| | | | | | | - This is somewhat cleaner and also fixes PR4063 for real, I had the order wrong so we were just creating an empty dependency file. llvm-svn: 70687
* PR4063: Fix dependency generation with -E.Daniel Dunbar2009-05-032-11/+49
| | | | llvm-svn: 70686
* Respect the COLUMNS environment variable for word-wrapping (so we getDouglas Gregor2009-05-031-5/+12
| | | | | | | | | | | word-wrapping by default in Emacs; yay!). Thanks, Daniel. Use LLVM's System layer rather than calling isatty() directly. Fix a thinko in printing the indentation string that was causing some weird output. llvm-svn: 70654
* When -fmessage-length=N is not specified, and if standard error isDouglas Gregor2009-05-021-1/+40
| | | | | | going to a terminal, word-wrap to the length of the terminal. llvm-svn: 70611
* Implement -fmessage-length=N, which word-wraps diagnostics to N columns. Douglas Gregor2009-05-011-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Also, put a line of whitespace between the diagnostic and the source code/caret line when the start of the actual source code text lines up (or nearly lines up) with the most recent line of the diagnostic. For example, here it's okay for the last line of the diagnostic to be (vertically) next to the source line, because there is horizontal whitespace to separate them: decl-expr-ambiguity.cpp:12:16: error: function-style cast to a builtin type can only take one argument typeof(int)(a,5)<<a; However, here is a case where we need the vertical separation (since there is no horizontal separation): message-length.c:10:46: warning: incompatible pointer types initializing 'void (int, float, char, float)', expected 'int (*)(int, float, short, float)' int (*fp1)(int, float, short, float) = f; This is part one of <rdar://problem/6711348>. llvm-svn: 70578
* Remove two unused options.Bill Wendling2009-04-301-2/+0
| | | | llvm-svn: 70457
* Use the new code gen optimization enum instead of passing in the optimizationBill Wendling2009-04-291-5/+12
| | | | | | level. This is more expressive. llvm-svn: 70451
* Match addPassesToEmitFile API change.Evan Cheng2009-04-291-2/+4
| | | | llvm-svn: 70409
* Integrate 3 months of ObjC rewriter fixes (from the Apple/objective-rewrite ↵Steve Naroff2009-04-292-215/+281
| | | | | | branch). llvm-svn: 70385
* Make all PCH-incompatibility warnings into errors, and abortDouglas Gregor2009-04-281-4/+8
| | | | | | | compilation if the user requested a PCH file but no such PCH file exists. llvm-svn: 70332
* Allow some differences between the predefines buffer used to build aDouglas Gregor2009-04-281-4/+4
| | | | | | | | | | | | | PCH file and the predefines buffer used when including the PCH file. We (explicitly) detect conflicting macro definitions (rejecting the PCH file) and about missing macro definitions (they'll be automatically pulled from the PCH file anyway). We're missing some checking to make sure that new macro definitions won't have any impact on the PCH file itself (e.g., #define'ing an identifier that the PCH file used). llvm-svn: 70316
* Remove unused LangOptions NoExtensions and Boolean.Eli Friedman2009-04-281-1/+0
| | | | llvm-svn: 70282
* We avoid the count of diagnostics when not generating carentMike Stump2009-04-281-3/+4
| | | | | | diagnostics to improve gcc compatibility; useful for dejagnu testing. llvm-svn: 70278
* -E, -Eonly and -parse-noop now work with PCH!Chris Lattner2009-04-271-9/+13
| | | | llvm-svn: 70259
* Teach PCH that ASTContext is optional. Move -parse-noop and -Eonly (so far)Chris Lattner2009-04-271-53/+59
| | | | | | | processing to after PCH is loaded. -Eonly and -parse-noop are close to working with PCH now but are not quite there yet. llvm-svn: 70257
* unnest some code, decoupling fixit rewriting from ast stuff.Chris Lattner2009-04-271-38/+38
| | | | llvm-svn: 70250
* Add -empty-input-only option, for timing.Daniel Dunbar2009-04-271-2/+10
| | | | | | - Forces input file to be empty to time startup/shutdown costs. llvm-svn: 70249
* Implement caching of stat() calls for precompiled headers, which isDouglas Gregor2009-04-272-5/+14
| | | | | | | | essentially the same thing we do with pretokenized headers. stat() caching improves performance of the Cocoa-prefixed "Hello, World" by 45%. llvm-svn: 70223
* Implement function-try-blocks. However, there's a very subtle bug that I ↵Sebastian Redl2009-04-262-6/+9
| | | | | | can't track down. llvm-svn: 70155
* Add a new -ast-dump-full option that traverses the translation unitDouglas Gregor2009-04-263-4/+29
| | | | | | | | declaration rather than printing through the HandleTopLevelDecl action. Using this, one can deserialize an entire PCH file and dump it. llvm-svn: 70108
* minor cleanups to ast-dump, use getBody(context).Chris Lattner2009-04-251-8/+8
| | | | llvm-svn: 70095
* The ivars in an ObjCImplementationDecl are now stored in theDouglas Gregor2009-04-231-5/+11
| | | | | | | DeclContext rather than in a separate list. This makes PCH (de-)serialization trivial, so that ivars can be loaded lazily. llvm-svn: 69857
* Eliminate the three SmallVectors in ObjCImplDecl (for instanceDouglas Gregor2009-04-232-45/+94
| | | | | | | | | | | methods, class methods, and property implementations) and instead place all of these entities into the DeclContext. This eliminates more linear walks when looking for class or instance methods and should make PCH (de-)serialization of ObjCDecls trivial (and lazy). llvm-svn: 69849
* Remove the serialization code that predates precompiledDouglas Gregor2009-04-225-456/+1
| | | | | | | headers. Future approaches to (de-)serializing ASTs will be based on the PCH infrastructure. llvm-svn: 69828
OpenPOWER on IntegriCloud