- Nov 03, 2007
-
-
Chris Lattner authored
ASTConsumer to process the AST before it is destroyed. This allows elimination of HandleObjcMetaDataEmission. llvm-svn: 43659
-
- Nov 01, 2007
-
-
Steve Naroff authored
- Remove _interface_ prefix for the synthesized tag names. - Also removed a tab from the generated struct (minor). llvm-svn: 43616
-
Steve Naroff authored
Implement rewrite rule for commenting out protocol references. For example: extern id /*<NSObject>*/ NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone); extern void NSDeallocateObject(id /*<NSObject>*/object); extern id /*<NSObject>*/ NSCopyObject(id /*<NSObject>*/object, unsigned extraBytes, NSZone *zone); llvm-svn: 43612
-
Steve Naroff authored
Tweak RewriteInterfaceDecl() to generate a typedef (if one hasn't already been generated). llvm-svn: 43600
-
Fariborz Jahanian authored
2) Fixed a test failure (which should have failed all along!). llvm-svn: 43589
-
Fariborz Jahanian authored
llvm-svn: 43586
-
- Oct 31, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43585
-
Steve Naroff authored
Fix two rewriter bugs: - For @class, don't generate multiple typedefs. - Handle the following edge case interface... @interface NSMiddleSpecifier : NSObject {} @end ...which was incorrectly being rewritten to... struct _interface_NSMiddleSpecifier { struct _interface_NSObject _NSObject; }; {} llvm-svn: 43582
-
Fariborz Jahanian authored
llvm-svn: 43560
-
Steve Naroff authored
Checking in some code that is still under construction. I need to (finally) change the way Class/id/SEL/IMP are built-in...the current approach of doing it in the preprocessor is "broken". The other problem is Sema::GetObjcIdType/GetObjcSelType/GetObjcClassType, the hooks that initialize ASTContext lazily. These built-in types need to be done up front... llvm-svn: 43557
-
Steve Naroff authored
Add some plumbing to help cope with rewriting "id<p>", "Class<p>*". llvm-svn: 43543
-
Steve Naroff authored
Stop pre-defining objc_msgSend/objc_getClass in the preprocessor. Instead, I generate these declaration on the fly when rewriting a message expression. llvm-svn: 43529
-
- Oct 30, 2007
-
-
Steve Naroff authored
Rewrite protocols. llvm-svn: 43503
-
Steve Naroff authored
- Add location info to category/protocol AST's - Rewrite categories. llvm-svn: 43501
-
Steve Naroff authored
Remove a couple FIXME's for rewriting ObjC interfaces (which are now being rewritten properly). llvm-svn: 43494
-
Steve Naroff authored
More support for rewriting ObjC intefaces. Still some edge cases to handle... llvm-svn: 43493
-
- Oct 29, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43481
-
Fariborz Jahanian authored
llvm-svn: 43454
-
Anders Carlsson authored
llvm-svn: 43439
-
- Oct 27, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43409
-
- Oct 26, 2007
-
-
Steve Naroff authored
Start rewriting ObjC interfaces. As a start, we comment out all the methods. This involved refining how the parser/AST passes/manages SourceLocations for ObjcMethodDecl's. llvm-svn: 43404
-
Fariborz Jahanian authored
Thanks to Steve N. to point out using of offsetof for this. llvm-svn: 43391
-
- Oct 25, 2007
-
-
Fariborz Jahanian authored
Changed the entire rewrite of metadata to write to std::string object instead of stdout. llvm-svn: 43360
-
Chris Lattner authored
printf as an example. llvm-svn: 43346
-
Fariborz Jahanian authored
instance/class methods metadata. llvm-svn: 43320
-
Steve Naroff authored
Still to do: - Chris will fix a bug in the rewriting engine for nested stmts. For example, the following: NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; tranlates to: NSAutoreleasePool * pool = objc_msgSend(objc_msgSend(objc_getClass("NSAutoreleasePool"), sel_getUid("alloc")), sel_getUid("init"))utoreleasePool"), sel_getUid("alloc")) init]; ...which is correct, except there is garbage after sel_getUid("init"). This is because the rewriter isn't updating the extent of the containing message expression. - Do the crazy cast thang. llvm-svn: 43316
-
- Oct 24, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43313
-
Fariborz Jahanian authored
protocol meta-data (unlike what documentation says). 2) Include objc.h so, we can compile the generated metadata with both gcc and clang. llvm-svn: 43311
-
Fariborz Jahanian authored
Implemented emission of category metadata, llvm-svn: 43308
-
Chris Lattner authored
llvm-svn: 43299
-
Chris Lattner authored
This will make nested subexprs work. llvm-svn: 43296
-
Steve Naroff authored
Incorporate some feedback from Chris... llvm-svn: 43285
-
Steve Naroff authored
Add some plumbing to rewrite message expressions (still under construction). llvm-svn: 43274
-
- Oct 23, 2007
-
-
Steve Naroff authored
- Add rewrite rule for @class. - Add setter/getter to ObjcClassDecl. - Predefined key runtime functions. llvm-svn: 43257
-
Fariborz Jahanian authored
llvm-svn: 43255
-
Fariborz Jahanian authored
llvm-svn: 43235
-
- Oct 22, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43233
-
- Oct 19, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43159
-
Fariborz Jahanian authored
llvm-svn: 43151
-
- Oct 18, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43143
-