- Nov 14, 2007
-
-
Ted Kremenek authored
block separate from ASTContext. This block is serialized out AFTER writing out ASTContext, but deserialized BEFORE reading in ASTContext. This permits the optimization of the serialization of the IdentifierTable where we only write out identifiers that are used. This was needed because TagDecls are owned by Types, and TagDecls contain identifiers. Thus types need to be written out first to register with the serializer any identifiers they refer to (and hence need to be serialized out with IdentifierTable). llvm-svn: 44125
-
Fariborz Jahanian authored
llvm-svn: 44123
-
Steve Naroff authored
Fix yesterday's regression with rewriting @optional/@required. llvm-svn: 44119
-
Steve Naroff authored
Rewrite methods that span multiple lines. llvm-svn: 44118
-
Steve Naroff authored
Comment out recent regression r44096. llvm-svn: 44098
-
Fariborz Jahanian authored
llvm-svn: 44096
-
Fariborz Jahanian authored
llvm-svn: 44095
-
Steve Naroff authored
llvm-svn: 44088
-
Steve Naroff authored
Rewrite method definition bodies. Also renamed a method to distinguish between method declarations and definitions. llvm-svn: 44080
-
- Nov 13, 2007
-
-
Ted Kremenek authored
llvm-svn: 44078
-
Fariborz Jahanian authored
llvm-svn: 44072
-
Fariborz Jahanian authored
llvm-svn: 44066
-
Fariborz Jahanian authored
llvm-svn: 44062
-
Fariborz Jahanian authored
llvm-svn: 44060
-
Fariborz Jahanian authored
llvm-svn: 44055
-
Ted Kremenek authored
floating point comparisons using == or != an opt-in rather than a default warning. Updated test case to use -Wfloat-equal. llvm-svn: 44053
-
Chris Lattner authored
Cedric Venet. llvm-svn: 44050
-
- Nov 12, 2007
-
-
Steve Naroff authored
- Minor cleanup to yesterday's changes to Sema::ObjcActOnStartOfMethodDef(); - Add Sema::CurMethodDecl, in preparation for adding ObjcIvarRefExpr. - Add ObjcInterfaceDecl::lookupInstanceVariable(), in prep for adding ivars. - A couple renames in ObjcInterfaceDecl, while I was in the vicinity:-) llvm-svn: 44015
-
- Nov 11, 2007
-
-
Steve Naroff authored
This is the last 5% of the solution to teaching Sema::ActOnInstanceMessage() about private methods (r43989). While the diff is large, the idea is very simple. When we parse method definitions (in an @implementation), we need to add them incrementally (rather than wait until the @end). Other details... - Renamed Sema::ActOnAddMethodsToObjcDecl() to Sema::ActOnAtEnd(). The methods are now optional arguments. - Removed Parser::AllImplMethods (a nice cleanup). - Added location info to ObjcImplementationDecl (since we will need it very soon:-) - Modified message.m test to no longer allow the bogus diagnostic. llvm-svn: 43995
-
- Nov 10, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43986
-
Ted Kremenek authored
(1) serialize out top-level decls BEFORE serializing out translation unit structures like ASTContext. (2) deserialize out translation unit structures like ASTContext before top-level decls by first skipping the decls in the bitstream, deserializing ASTContext and friends, and then jumping back to the bitstream block with the decls and then deserializing them. Change (1) allows us to utilize the pointer-tracking system in the Serializer to only serialize out metadata that is actually referenced by the ASTS. Change (2) allows us to deserialize the metadata first as before, which signficantly reduces the amount of pointer backpatching the deserializer would have to do if the decls were deserialized first. llvm-svn: 43974
-
- Nov 09, 2007
-
-
Steve Naroff authored
Rewrite global variable initializers. llvm-svn: 43947
-
Steve Naroff authored
- add typedef guards. - tweak scanForProtocolRefs heuristic. - disable RewriteInclude() for now. llvm-svn: 43942
-
- Nov 08, 2007
-
-
Steve Naroff authored
Rewrite RewriteObjCStringLiteral(). This version is simpler (and unlike the previous one, works:-) llvm-svn: 43890
-
Chris Lattner authored
llvm-svn: 43882
-
Chris Lattner authored
Disable rewrite-tabs. This speeds up processing of the commentified huge crazy testcase steve gave me from 20s to 6.6s in a release build. llvm-svn: 43880
-
- Nov 07, 2007
-
-
Steve Naroff authored
Finishing touches on code generation for @try and friends. - declare functions we use. - cast arguments to objc_exception_match(). - don't take the & of _stack.buf. llvm-svn: 43831
-
Fariborz Jahanian authored
llvm-svn: 43830
-
Steve Naroff authored
Implement rewrite for @throw. llvm-svn: 43820
-
Steve Naroff authored
Rewrite ObjC @try/@catch/@finally. Some minor tweaks to the AST nodes... Still need to rewrite @throw (and do more testing)... llvm-svn: 43803
-
Fariborz Jahanian authored
llvm-svn: 43791
-
Ted Kremenek authored
llvm-svn: 43790
-
- Nov 06, 2007
-
-
Ted Kremenek authored
file had the correct preamble. llvm-svn: 43785
-
Fariborz Jahanian authored
llvm-svn: 43778
-
Ted Kremenek authored
Revampled Serialization Tester to serialize and deserialize out an entire ASTContext and top-level decls. llvm-svn: 43773
-
- Nov 05, 2007
-
-
Ted Kremenek authored
llvm-svn: 43738
-
Fariborz Jahanian authored
2) Fixed a regression in meta-data generation caused by removal of '_interface' prefix from synthesize class name. 3) Added stubs for @try/@catch/@finally statements. llvm-svn: 43716
-
Steve Naroff authored
Declare objc_selector outside the prototype for objc_msgSend(), removing a silly warning. llvm-svn: 43706
-
Steve Naroff authored
Rewrite @selector(sel). llvm-svn: 43705
-
Steve Naroff authored
- change the synthesized typedef (for classes) to be of type "objc_object". - fix a couple bugs in RewriteObjCStringLiteral. - convert "Class" -> "id" in RewriteMessageExpr. llvm-svn: 43704
-