Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a rewriting crash and correct rewriting of __block | Fariborz Jahanian | 2010-01-16 | 1 | -7/+18 |
| | | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650 | ||||
* | define __weak to null in rewritten source for | Fariborz Jahanian | 2010-01-15 | 1 | -0/+1 |
| | | | | | | -fms-extensions as well. llvm-svn: 93569 | ||||
* | Preserve type source information in explicit cast expressions. | John McCall | 2010-01-15 | 1 | -96/+68 |
| | | | | | | Patch by Enea Zaffanella. llvm-svn: 93522 | ||||
* | Do not do the block-specific rewrite when there is no block literals. | Fariborz Jahanian | 2010-01-15 | 1 | -1/+1 |
| | | | | | | Fixes radar 7546096. llvm-svn: 93519 | ||||
* | Patch to avoid duplicate declaration of byref structs | Fariborz Jahanian | 2010-01-14 | 1 | -9/+35 |
| | | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 llvm-svn: 93474 | ||||
* | Fix a bug in rewrite whereby functions using blocks put extern "C" in wrong ↵ | Fariborz Jahanian | 2010-01-14 | 1 | -2/+38 |
| | | | | | | | | place. Fixes radar 7284618. llvm-svn: 93382 | ||||
* | Improve on objective-c pointer recognition | Fariborz Jahanian | 2010-01-12 | 1 | -2/+3 |
| | | | | | | during rewrite. No functionality chang. llvm-svn: 93241 | ||||
* | Fix rewriting of MacOS sjlj based eh. | Fariborz Jahanian | 2010-01-12 | 1 | -4/+4 |
| | | | | | | Fixes radar 7522880. llvm-svn: 93219 | ||||
* | Fix rewriting for forward class declaration. | Fariborz Jahanian | 2010-01-11 | 1 | -3/+11 |
| | | | | | | (fixes radar 6969189). llvm-svn: 93201 | ||||
* | Fixup rewrite of ivars accessed via an explicit object | Fariborz Jahanian | 2010-01-11 | 1 | -2/+3 |
| | | | | | | in a function. Fixes radar 7522803. llvm-svn: 93159 | ||||
* | Silence MSVC warning. | Benjamin Kramer | 2010-01-10 | 1 | -1/+1 |
| | | | | | | RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation llvm-svn: 93124 | ||||
* | revert 91891, a workaround for PR5514. | Chris Lattner | 2010-01-09 | 1 | -2/+1 |
| | | | | llvm-svn: 93077 | ||||
* | clang ObjC rewriter: generated code used in "for (x in y)" loop uses | Fariborz Jahanian | 2010-01-08 | 1 | -2/+6 |
| | | | | | | incorrect cast, causing compile error (fixes radar 7342867). llvm-svn: 92986 | ||||
* | Fixes a bug where we were rewriting two definitions of | Fariborz Jahanian | 2010-01-07 | 1 | -1/+2 |
| | | | | | | _objc_method (part of radar 7490408). llvm-svn: 92957 | ||||
* | Fixes a bug in my last patch (related to radar 7490331). | Fariborz Jahanian | 2010-01-07 | 1 | -1/+1 |
| | | | | llvm-svn: 92952 | ||||
* | Avoid error when convering a pointer to integer in | Fariborz Jahanian | 2010-01-07 | 1 | -1/+1 |
| | | | | | | rewriting. llvm-svn: 92925 | ||||
* | Fix rewriting of ivars. Fixes radar 7490331. | Fariborz Jahanian | 2010-01-07 | 1 | -2/+3 |
| | | | | llvm-svn: 92924 | ||||
* | Fix typo: rename Rewriter::getRewritenText() -> Rewriter::getRewrittenText(). | Ted Kremenek | 2010-01-07 | 1 | -1/+1 |
| | | | | llvm-svn: 92922 | ||||
* | Change ObjCContainerDecl to contain the entire range for the '@end' | Ted Kremenek | 2010-01-07 | 1 | -3/+3 |
| | | | | | | | | | | | piece of the declaration. The '@' and the 'end' are separate tokens, and require two SourceLocations to accurately track. This change was motivated because ObjCContainerDecl::getSourceRange() would previously not return the entire range of the declaration (the 'end' would be left off). llvm-svn: 92891 | ||||
* | Fixed a bug where initializer is a macro in rewrite. | Fariborz Jahanian | 2010-01-05 | 1 | -0/+1 |
| | | | | llvm-svn: 92801 | ||||
* | API support for __block variables which are also __weak. | Fariborz Jahanian | 2010-01-05 | 1 | -5/+16 |
| | | | | llvm-svn: 92755 | ||||
* | Minor clean up. | Fariborz Jahanian | 2010-01-05 | 1 | -6/+3 |
| | | | | llvm-svn: 92746 | ||||
* | Remove bogus "C" from preamble block decls. | Steve Naroff | 2010-01-05 | 1 | -2/+2 |
| | | | | llvm-svn: 92744 | ||||
* | More rewriting of __block APIs. wip. | Fariborz Jahanian | 2010-01-05 | 1 | -26/+40 |
| | | | | llvm-svn: 92742 | ||||
* | More rewriting of __block objective-c pointer variables. wip. | Fariborz Jahanian | 2010-01-05 | 1 | -5/+80 |
| | | | | llvm-svn: 92558 | ||||
* | More rewriting of __block declared objective-c/block pointers. | Fariborz Jahanian | 2010-01-04 | 1 | -16/+45 |
| | | | | | | This is wip. llvm-svn: 92501 | ||||
* | When rewriting a __block declaration, use a suitable API to get location of | Fariborz Jahanian | 2009-12-30 | 1 | -1/+3 |
| | | | | | | the declaration in the presence of an initializer macro. llvm-svn: 92312 | ||||
* | More cleanup/refactoring of the rewrite. | Fariborz Jahanian | 2009-12-23 | 1 | -8/+6 |
| | | | | llvm-svn: 92062 | ||||
* | Some cleanup and refactoring of rewriter. | Fariborz Jahanian | 2009-12-23 | 1 | -4/+26 |
| | | | | llvm-svn: 92049 | ||||
* | This patch concludes rewriteing of __block variables to allow | Fariborz Jahanian | 2009-12-23 | 1 | -2/+10 |
| | | | | | | a small test case using Block_copy(...) API to pass. llvm-svn: 92038 | ||||
* | Removed a FIXME comment. | Fariborz Jahanian | 2009-12-23 | 1 | -3/+2 |
| | | | | llvm-svn: 92028 | ||||
* | More rewriting of __block variables. | Fariborz Jahanian | 2009-12-23 | 1 | -4/+18 |
| | | | | llvm-svn: 92027 | ||||
* | Add support for handling initializers in RewriteObjC::RewriteByRefVar(). | Steve Naroff | 2009-12-23 | 1 | -5/+16 |
| | | | | | | As the FIXME indicates, RewriteByRefVar() won't work for multiple declarators (in general). I've discussed this with Fariborz and he is aware of the limitation. llvm-svn: 92007 | ||||
* | Patch to do more rewrite of __block variables. | Fariborz Jahanian | 2009-12-23 | 1 | -11/+87 |
| | | | | | | Still WIP. llvm-svn: 91977 | ||||
* | Work around PR5514. | Anders Carlsson | 2009-12-22 | 1 | -1/+2 |
| | | | | llvm-svn: 91891 | ||||
* | Template code for rewrite of __block variables - wip. | Fariborz Jahanian | 2009-12-22 | 1 | -0/+7 |
| | | | | llvm-svn: 91865 | ||||
* | Providing support for rewriting of block copy/dispose of | Fariborz Jahanian | 2009-12-21 | 1 | -4/+11 |
| | | | | | | imported block variables. WIP. llvm-svn: 91856 | ||||
* | Implemented rewriting of invocation of a block ivar. | Fariborz Jahanian | 2009-12-18 | 1 | -0/+2 |
| | | | | | | | (radar 7482224). llvm-svn: 91652 | ||||
* | Implement conditional block invocation rewrite | Fariborz Jahanian | 2009-12-15 | 1 | -12/+28 |
| | | | | | | and some clean up and a block rewriter test. llvm-svn: 91435 | ||||
* | DeclaratorInfo -> TypeSourceInfo. Makes an effort to rename associated ↵ | John McCall | 2009-12-07 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | variables, but the results are imperfect. For posterity, I did: cat <<EOF > $cmdfile s/DeclaratorInfo/TypeSourceInfo/g s/DInfo/TInfo/g s/TypeTypeSourceInfo/TypeSourceInfo/g s/SourceTypeSourceInfo/TypeSourceInfo/g EOF find lib -name '*.cpp' -not -path 'lib/Parse/*' -exec sed -i '' -f $cmdfile '{}' \; find lib -name '*.h' -exec sed -i '' -f $cmdfile '{}' \; find include -name '*.h' -not -path 'include/clang/Parse/*' -not -path 'include/clang/Basic/*' -exec sed -i '' -f $cmdfile '{}' \; llvm-svn: 90743 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-06 | 1 | -44/+75 |
| | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=81871 http://llvm.org/viewvc/llvm-project?view=rev&revision=81936 http://llvm.org/viewvc/llvm-project?view=rev&revision=81945 llvm-svn: 90718 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-06 | 1 | -1/+1 |
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=86026 Note: The 'improved debugging' changes weren't integrated (since they were later reverted, since they didn't improve debugging). llvm-svn: 90693 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-06 | 1 | -2/+1 |
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=82174 llvm-svn: 90692 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-06 | 1 | -4/+11 |
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=72893 llvm-svn: 90690 | ||||
* | Don't call back() on an empty vector. | Benjamin Kramer | 2009-12-05 | 1 | -2/+1 |
| | | | | llvm-svn: 90678 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-05 | 1 | -10/+94 |
| | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71225 http://llvm.org/viewvc/llvm-project?view=rev&revision=73207 http://llvm.org/viewvc/llvm-project?view=rev&revision=73414 llvm-svn: 90677 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-05 | 1 | -9/+37 |
| | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 http://llvm.org/viewvc/llvm-project?view=rev&revision=71107 Note: This fixes <rdar://problem/6845623> from protocol to template. llvm-svn: 90665 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-04 | 1 | -1/+1 |
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70978 llvm-svn: 90597 | ||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-04 | 1 | -3/+13 |
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70922 llvm-svn: 90595 | ||||
* | Centralize and complete the computation of value- and type-dependence for ↵ | Douglas Gregor | 2009-11-23 | 1 | -1/+1 |
| | | | | | | DeclRefExprs llvm-svn: 89649 |