summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* CMake: Builds and installs clang binary and libs (no docs yet). ItOscar Fuentes2008-10-261-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 Kremenek2008-10-251-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 Lopes2008-10-241-4/+2
| | | | | | takes ownership of the module llvm-svn: 58128
* fix leaking of the module providerNuno Lopes2008-10-241-3/+5
| | | | llvm-svn: 58127
* Add initial dependency file generation support. Patch by KovarththananDaniel Dunbar2008-10-243-0/+237
| | | | | | Rajaratnam, with some updates and formatting changes. llvm-svn: 58122
* Move viewInheritance to CXXRecordDecl, and make sure it builds in Release ↵Douglas Gregor2008-10-241-2/+1
| | | | | | mode, too llvm-svn: 58105
* Use LINK_COMPONENTS instead of hard coding LLVM libraries.Daniel Dunbar2008-10-241-5/+2
| | | | llvm-svn: 58076
* Fix linking error.Zhongxing Xu2008-10-241-1/+1
| | | | llvm-svn: 58067
* Make the analyzer store (memory model) a command line option.Ted Kremenek2008-10-244-6/+50
| | | | llvm-svn: 58056
* Added driver option "-cxx-inheritance-view" for viewing the C++ hierarchy of ↵Ted Kremenek2008-10-233-2/+49
| | | | | | a class in GraphViz. llvm-svn: 58051
* Hook "fast" code generation to -O0.Daniel Dunbar2008-10-231-8/+5
| | | | llvm-svn: 58035
* Add -O[0-3s] support (following llvm-gcc).Daniel Dunbar2008-10-233-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 Naroff2008-10-221-1/+0
| | | | llvm-svn: 58011
* Only create the target machine when emitting assembly.Daniel Dunbar2008-10-221-17/+17
| | | | llvm-svn: 57993
* [LLVM up] Get rid of std::ostream usage from Backend.cppDaniel Dunbar2008-10-221-18/+4
| | | | llvm-svn: 57990
* Add support for assembler-with-cpp (preprocessed .S files), patch byChris Lattner2008-10-221-1/+9
| | | | | | Roman Divacky! llvm-svn: 57988
* Update to use raw_ostream for PrintModulePass.Daniel Dunbar2008-10-221-6/+6
| | | | | | - Stop playing fast and loose with the std stream. llvm-svn: 57948
* Commito, didn't mean to remove this header.Daniel Dunbar2008-10-211-0/+1
| | | | llvm-svn: 57938
* [LLVM up] Add basic -S option to clang.Daniel Dunbar2008-10-215-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 overloadingDouglas Gregor2008-10-211-1/+2
| | | | llvm-svn: 57909
* Fix <rdar://problem/6297052> confused in some way by embedded /* */ comments.Steve Naroff2008-10-211-2/+2
| | | | llvm-svn: 57903
* Fix <rdar://problem/6261178> clang-on-xcode: [sema] multiple method warning ↵Steve Naroff2008-10-211-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 Kremenek2008-10-213-11/+229
| | | | llvm-svn: 57863
* Add newline at the end of file, to silence compiler warning.Matthijs Kooijman2008-10-201-1/+1
| | | | llvm-svn: 57818
* Remove unneeded EncodingRecordTypes argument to getObjCEncodingForType.Daniel Dunbar2008-10-171-7/+3
| | | | llvm-svn: 57716
* Add --disable-free flag to clang.Daniel Dunbar2008-10-161-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 Naroff2008-10-151-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 Lattner2008-10-121-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 fileChris Lattner2008-10-121-1/+9
| | | | | | and lets a client iterate over it. llvm-svn: 57407
* Add a new -rewrite-test option, which is basically a Chris Lattner2008-10-123-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 Lattner2008-10-121-3/+26
| | | | | | Rename -dumptokens to -dump-tokens. llvm-svn: 57405
* Change how raw lexers are handled: instead of creating them and thenChris Lattner2008-10-121-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 Naroff2008-10-101-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 Dunbar2008-10-101-0/+3
| | | | llvm-svn: 57334
* Touchup the rewriter to handle the new BlockExpr->BlockDecl dance.Steve Naroff2008-10-081-9/+15
| | | | llvm-svn: 57299
* - Add BlockDecl AST node.Steve Naroff2008-10-081-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 Kremenek2008-10-061-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 Kremenek2008-10-061-1/+1
| | | | llvm-svn: 57215
* Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when ↵Ted Kremenek2008-10-061-2/+3
| | | | | | rewriting Objective-c foreach statements. llvm-svn: 57212
* In RewriteFunctionBody, using DeclStmt::decl_iterator to rewrite the Decls ↵Ted Kremenek2008-10-061-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 Dunbar2008-10-051-3/+3
| | | | llvm-svn: 57093
* Add dummy -ast-dump support for ObjC category implementations.Daniel Dunbar2008-10-051-0/+2
| | | | llvm-svn: 57087
* Remove old diag that alerted the user to a limitation we no longer have:-)Steve Naroff2008-10-051-3/+0
| | | | llvm-svn: 57086
* Create a function, eliminating some redundancy between ↵Steve Naroff2008-10-051-27/+10
| | | | | | SynthesizeBlockInitExpr() and SynthesizeBlockLiterals(). llvm-svn: 57083
* Finish implementing copy/dispose helpers for imported block decls.Steve Naroff2008-10-041-22/+50
| | | | llvm-svn: 57082
* Set exit code properly on "Unexpected program action".Daniel Dunbar2008-10-041-1/+4
| | | | llvm-svn: 57080
* Add indirection required for byref BlockDeclRefExpr's.Steve Naroff2008-10-041-0/+11
| | | | llvm-svn: 57063
* Handle bookkeeping for imported blocks (in SynthesizeBlockImpl).Steve Naroff2008-10-041-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 Naroff2008-10-041-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 Naroff2008-10-041-0/+1
| | | | | | BlockExpr. llvm-svn: 57053
OpenPOWER on IntegriCloud