Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | CMake: Builds and installs clang binary and libs (no docs yet). It | Oscar Fuentes | 2008-10-26 | 1 | -0/+40 | |
| | | | | | | must be under the `tools' subdirectory of the LLVM *source* tree. llvm-svn: 58180 | |||||
* | Use string literal for format string specifier; this prevents ErrMsg from ↵ | Ted Kremenek | 2008-10-25 | 1 | -1/+1 | |
| | | | | | | being interpretted as a format string specifier. llvm-svn: 58150 | |||||
* | 2nd try to fix leakage of the module provider. note that moduleprovider ↵ | Nuno Lopes | 2008-10-24 | 1 | -4/+2 | |
| | | | | | | takes ownership of the module llvm-svn: 58128 | |||||
* | fix leaking of the module provider | Nuno Lopes | 2008-10-24 | 1 | -3/+5 | |
| | | | | llvm-svn: 58127 | |||||
* | Add initial dependency file generation support. Patch by Kovarththanan | Daniel Dunbar | 2008-10-24 | 3 | -0/+237 | |
| | | | | | | Rajaratnam, with some updates and formatting changes. llvm-svn: 58122 | |||||
* | Move viewInheritance to CXXRecordDecl, and make sure it builds in Release ↵ | Douglas Gregor | 2008-10-24 | 1 | -2/+1 | |
| | | | | | | mode, too llvm-svn: 58105 | |||||
* | Use LINK_COMPONENTS instead of hard coding LLVM libraries. | Daniel Dunbar | 2008-10-24 | 1 | -5/+2 | |
| | | | | llvm-svn: 58076 | |||||
* | Fix linking error. | Zhongxing Xu | 2008-10-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 58067 | |||||
* | Make the analyzer store (memory model) a command line option. | Ted Kremenek | 2008-10-24 | 4 | -6/+50 | |
| | | | | llvm-svn: 58056 | |||||
* | Added driver option "-cxx-inheritance-view" for viewing the C++ hierarchy of ↵ | Ted Kremenek | 2008-10-23 | 3 | -2/+49 | |
| | | | | | | a class in GraphViz. llvm-svn: 58051 | |||||
* | Hook "fast" code generation to -O0. | Daniel Dunbar | 2008-10-23 | 1 | -8/+5 | |
| | | | | llvm-svn: 58035 | |||||
* | Add -O[0-3s] support (following llvm-gcc). | Daniel Dunbar | 2008-10-23 | 3 | -11/+141 | |
| | | | | | | - Passes match llvm-gcc but many of the switches aren't wired. llvm-svn: 58034 | |||||
* | Fix <rdar://problem/6312683> clang block rewriter: | Steve Naroff | 2008-10-22 | 1 | -1/+0 | |
| | | | | llvm-svn: 58011 | |||||
* | Only create the target machine when emitting assembly. | Daniel Dunbar | 2008-10-22 | 1 | -17/+17 | |
| | | | | llvm-svn: 57993 | |||||
* | [LLVM up] Get rid of std::ostream usage from Backend.cpp | Daniel Dunbar | 2008-10-22 | 1 | -18/+4 | |
| | | | | llvm-svn: 57990 | |||||
* | Add support for assembler-with-cpp (preprocessed .S files), patch by | Chris Lattner | 2008-10-22 | 1 | -1/+9 | |
| | | | | | | Roman Divacky! llvm-svn: 57988 | |||||
* | Update to use raw_ostream for PrintModulePass. | Daniel Dunbar | 2008-10-22 | 1 | -6/+6 | |
| | | | | | | - Stop playing fast and loose with the std stream. llvm-svn: 57948 | |||||
* | Commito, didn't mean to remove this header. | Daniel Dunbar | 2008-10-21 | 1 | -0/+1 | |
| | | | | llvm-svn: 57938 | |||||
* | [LLVM up] Add basic -S option to clang. | Daniel Dunbar | 2008-10-21 | 5 | -98/+332 | |
| | | | | | | | | | | | - Split backend related consumer out into Backend.cpp, replaces LLVMCodeGenWriter. - Structure follows llvm-gcc to some extent. - Still need to implement all the options which impact code generation and the optimization passes which llvm-gcc uses at various levels. llvm-svn: 57936 | |||||
* | Preliminary support for function overloading | Douglas Gregor | 2008-10-21 | 1 | -1/+2 | |
| | | | | llvm-svn: 57909 | |||||
* | Fix <rdar://problem/6297052> confused in some way by embedded /* */ comments. | Steve Naroff | 2008-10-21 | 1 | -2/+2 | |
| | | | | llvm-svn: 57903 | |||||
* | Fix <rdar://problem/6261178> clang-on-xcode: [sema] multiple method warning ↵ | Steve Naroff | 2008-10-21 | 1 | -0/+5 | |
| | | | | | | | | | | | | is over enthusiastic. Fix <rdar://problem/6265257> warnings for ambiguous message send swamp other warnings. Reworked Sema::MatchTwoMethodDeclarations() to optionally match based on method size and alignment (the default in GCC). Changed Sema::LookupInstanceMethodInGlobalPool() to use this feature. Added -Wno-struct-selector-match to driver, however didn't hook it up yet. Added a FIXME that says this. llvm-svn: 57898 | |||||
* | Added the start of a prototype implementation of PCH based on token caching. | Ted Kremenek | 2008-10-21 | 3 | -11/+229 | |
| | | | | llvm-svn: 57863 | |||||
* | Add newline at the end of file, to silence compiler warning. | Matthijs Kooijman | 2008-10-20 | 1 | -1/+1 | |
| | | | | llvm-svn: 57818 | |||||
* | Remove unneeded EncodingRecordTypes argument to getObjCEncodingForType. | Daniel Dunbar | 2008-10-17 | 1 | -7/+3 | |
| | | | | llvm-svn: 57716 | |||||
* | Add --disable-free flag to clang. | Daniel Dunbar | 2008-10-16 | 1 | -2/+6 | |
| | | | | | | | | - Disables the freeing of the ASTContext and the TranslationUnit after parsing & sema. - Primarily for timing the impact on -fsyntax-only timings. llvm-svn: 57643 | |||||
* | Tighten up blocks rewriter to handle casts and some other interesting cases. | Steve Naroff | 2008-10-15 | 1 | -23/+84 | |
| | | | | | | This fixes <rdar://problem/6289007> clang block rewriter: ^ in cast is not rewritten. llvm-svn: 57591 | |||||
* | make the -rewrite-test a bit more interesting: it now | Chris Lattner | 2008-10-12 | 1 | -20/+11 | |
| | | | | | | | wraps comments in <i> tags. Extend rewrite tokens to support this minimal functionality. llvm-svn: 57409 | |||||
* | start implementing a token rewriter. At this point, it just reads in a file | Chris Lattner | 2008-10-12 | 1 | -1/+9 | |
| | | | | | | and lets a client iterate over it. llvm-svn: 57407 | |||||
* | Add a new -rewrite-test option, which is basically a | Chris Lattner | 2008-10-12 | 3 | -0/+53 | |
| | | | | | | | playground to experiment with some new rewriter approaches. For now it is probably the most complex version of 'cat' ever invented. llvm-svn: 57406 | |||||
* | Add a new -dump-raw-tokens option, which allows us to see raw tokens. | Chris Lattner | 2008-10-12 | 1 | -3/+26 | |
| | | | | | | Rename -dumptokens to -dump-tokens. llvm-svn: 57405 | |||||
* | Change how raw lexers are handled: instead of creating them and then | Chris Lattner | 2008-10-12 | 1 | -1/+1 | |
| | | | | | | | | | | | using LexRawToken, create one and use LexFromRawLexer. This avoids twiddling the RawLexer flag around and simplifies some code (even speeding raw lexing up a tiny bit). This change also improves the token paster to use a Lexer on the stack instead of new/deleting it. llvm-svn: 57393 | |||||
* | Fix/simplify RewriteBlocks::RewriteBlockPointerFunctionArgs(). | Steve Naroff | 2008-10-10 | 1 | -45/+5 | |
| | | | | | | This completes the fix for <rdar://problem/6272905> clang block rewriter: parameter to function not imported into block?. llvm-svn: 57350 | |||||
* | Disable blocks support in C++ mode. | Daniel Dunbar | 2008-10-10 | 1 | -0/+3 | |
| | | | | llvm-svn: 57334 | |||||
* | Touchup the rewriter to handle the new BlockExpr->BlockDecl dance. | Steve Naroff | 2008-10-08 | 1 | -9/+15 | |
| | | | | llvm-svn: 57299 | |||||
* | - Add BlockDecl AST node. | Steve Naroff | 2008-10-08 | 1 | -5/+7 | |
| | | | | | | | | | | - Modify BlockExpr to reference the BlockDecl. This is "cleanup" necessary to improve our lookup semantics for blocks (to fix <rdar://problem/6272905> clang block rewriter: parameter to function not imported into block?). Still some follow-up work to finish this (forthcoming). llvm-svn: 57298 | |||||
* | Explicitly access the first Decl* referenced by a DeclStmt instead of using ↵ | Ted Kremenek | 2008-10-06 | 1 | -3/+9 | |
| | | | | | | "getDecl()." Added a FIXME indicating that the call to RewriteObjCQualifiedInterfaceTypes() is meant to modifying the type-specifier; hopefully this will be a little more clean once DeclGroups contain type specifiers. llvm-svn: 57216 | |||||
* | Use "DeclStmt::getSolitaryDecl()" when accessing the DeclStmt of an @catch. | Ted Kremenek | 2008-10-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 57215 | |||||
* | Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when ↵ | Ted Kremenek | 2008-10-06 | 1 | -2/+3 | |
| | | | | | | rewriting Objective-c foreach statements. llvm-svn: 57212 | |||||
* | In RewriteFunctionBody, using DeclStmt::decl_iterator to rewrite the Decls ↵ | Ted Kremenek | 2008-10-06 | 1 | -8/+12 | |
| | | | | | | | in a DeclStmt instead of using getDecl() to fetch the first Decl. Steve: Please review this patch. 'make test' passes, and my cursory scan of the rewriter leads me to believe this doesn't break anything, but I'm not sure. llvm-svn: 57195 | |||||
* | Allow -verify to be used with -rewrite-macros. | Daniel Dunbar | 2008-10-05 | 1 | -3/+3 | |
| | | | | llvm-svn: 57093 | |||||
* | Add dummy -ast-dump support for ObjC category implementations. | Daniel Dunbar | 2008-10-05 | 1 | -0/+2 | |
| | | | | llvm-svn: 57087 | |||||
* | Remove old diag that alerted the user to a limitation we no longer have:-) | Steve Naroff | 2008-10-05 | 1 | -3/+0 | |
| | | | | llvm-svn: 57086 | |||||
* | Create a function, eliminating some redundancy between ↵ | Steve Naroff | 2008-10-05 | 1 | -27/+10 | |
| | | | | | | SynthesizeBlockInitExpr() and SynthesizeBlockLiterals(). llvm-svn: 57083 | |||||
* | Finish implementing copy/dispose helpers for imported block decls. | Steve Naroff | 2008-10-04 | 1 | -22/+50 | |
| | | | | llvm-svn: 57082 | |||||
* | Set exit code properly on "Unexpected program action". | Daniel Dunbar | 2008-10-04 | 1 | -1/+4 | |
| | | | | llvm-svn: 57080 | |||||
* | Add indirection required for byref BlockDeclRefExpr's. | Steve Naroff | 2008-10-04 | 1 | -0/+11 | |
| | | | | llvm-svn: 57063 | |||||
* | Handle bookkeeping for imported blocks (in SynthesizeBlockImpl). | Steve Naroff | 2008-10-04 | 1 | -1/+8 | |
| | | | | | | This code was "lost" with my recent changes to SynthesizeBlockFunc. llvm-svn: 57056 | |||||
* | Cut/paste error...need to use the expression "name" for member references ↵ | Steve Naroff | 2008-10-04 | 1 | -1/+1 | |
| | | | | | | (or other complex expressions that can embed a block pointer type) llvm-svn: 57054 | |||||
* | Clear the map that associated the rewritten block with it's corresponding ↵ | Steve Naroff | 2008-10-04 | 1 | -0/+1 | |
| | | | | | | BlockExpr. llvm-svn: 57053 |