summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Use the new EmitCallArgs function. No indented functionality change.Anders Carlsson2009-04-081-0/+1
| | | | llvm-svn: 68652
* Some "prep" work for handling ObjC @-string constants that contain UTF-8. No ↵Steve Naroff2009-03-311-3/+1
| | | | | | | | functionality change. Changed GenerateConstantString() to take an ObjCStringLiteral (instead of a std::string). While this isn't strictly necessary, it seems cleaner and allows us to cache to "containsNonAscii" if necessary (to avoid checking in both Sema and CodeGen). llvm-svn: 68114
* rename some methods.Chris Lattner2009-03-281-1/+1
| | | | llvm-svn: 67923
* pull "runtime globals" into the same framework as other functions/global ↵Chris Lattner2009-03-221-3/+2
| | | | | | | | variables. No intended functionality change. llvm-svn: 67478
* Fix codegen for support for super inside block literal expressions.Mike Stump2009-03-201-0/+2
| | | | llvm-svn: 67406
* More super dot-syntax property implementationFariborz Jahanian2009-03-201-26/+46
| | | | | | | when there is actually a property declaration used in the dot-syntax. llvm-svn: 67391
* Implement ir gen. for setter/getter applied to 'super' Fariborz Jahanian2009-03-201-1/+30
| | | | | | in a property dot-syntax notation. llvm-svn: 67382
* ir-gen support for class getter/setter call Fariborz Jahanian2009-03-101-4/+18
| | | | | | using property dot-syntax. llvm-svn: 66556
* Fixed an ir-gen bug in syntheszing a getter functionFariborz Jahanian2009-03-031-3/+7
| | | | | | | with property type which does not match its ivar and in -fobjc-gc-only mode! llvm-svn: 65955
* Obscure code gen bug related to sending Fariborz Jahanian2009-02-281-0/+2
| | | | | | | message to 'super' in a class method declared in cateogy (darwin specific). llvm-svn: 65709
* Enable debug info emission for objc methods.Devang Patel2009-02-251-0/+3
| | | | llvm-svn: 65422
* remove some more methods from objc decls, using the iteratorChris Lattner2009-02-201-6/+5
| | | | | | interfaces more consistently. llvm-svn: 65138
* Start removing the old Obj-C EH stack now that the cleanup stack is used ↵Anders Carlsson2009-02-101-7/+1
| | | | | | instead. llvm-svn: 64203
* Ensure we track all the stack depths for all break and continue pointsMike Stump2009-02-071-7/+7
| | | | | | | correctly. This should lay the ground work to throw the big switch and start code gening break and continue in the presense of vlas. llvm-svn: 64046
* Ensure that we don't miscodegen if vlas creap into the top of the for.Mike Stump2009-02-071-0/+6
| | | | | | | This will allow us to generate break and continue even if vlas are involved without worry that we'll silently generate bad code. llvm-svn: 64028
* Fixup goto codegen in and around VLAs.Mike Stump2009-02-071-2/+1
| | | | llvm-svn: 64014
* Use correct signature for calling enumeration mutation function.Daniel Dunbar2009-02-041-1/+1
| | | | llvm-svn: 63782
* Update passing of _Bool values to match what function was declared to take.Daniel Dunbar2009-02-041-3/+3
| | | | llvm-svn: 63697
* Use CGCall infrastructure to call enumeration mutation function.Daniel Dunbar2009-02-031-1/+7
| | | | llvm-svn: 63685
* Fix return type for calls to objc_setProperty.Daniel Dunbar2009-02-031-1/+5
| | | | llvm-svn: 63683
* objc2's ir-gen for nonfragile ivar access.Fariborz Jahanian2009-02-031-1/+10
| | | | llvm-svn: 63578
* Thread CGFunctionInfo construction through CodeGenTypes.Daniel Dunbar2009-02-021-2/+3
| | | | | | - Inefficient & leaks memory currently, will be cleaned up subsequently. llvm-svn: 63567
* More ABI API cleanup.Daniel Dunbar2009-02-021-3/+3
| | | | | | | - Lift CGFunctionInfo creation above ReturnTypeUsesSret and EmitFunction{Epi,Pro}log. llvm-svn: 63553
* ABI handling API changes.Daniel Dunbar2009-02-021-2/+3
| | | | | | | | | | | - Lift CGFunctionInfo creation up to callers of EmitCall. - Move isVariadic bit out of CGFunctionInfo, take as argument to GetFunctionType instead. No functionality change. llvm-svn: 63550
* Remove ScopedDecl, collapsing all of its functionality into Decl, soDouglas Gregor2009-01-201-1/+1
| | | | | | | | | | | | | | | | that every declaration lives inside a DeclContext. Moved several things that don't have names but were ScopedDecls (and, therefore, NamedDecls) to inherit from Decl rather than NamedDecl, including ObjCImplementationDecl and LinkageSpecDecl. Now, we don't store empty DeclarationNames for these things, nor do we try to insert them into DeclContext's lookup structure. The serialization tests are temporarily disabled. We'll re-enable them once we've sorted out the remaining ownership/serialiazation issues between DeclContexts and TranslationUnion, DeclGroups, etc. llvm-svn: 62562
* Attempt to unbreak Windows build.Daniel Dunbar2009-01-161-3/+3
| | | | llvm-svn: 62295
* Fix some unused variable, control reaches end of non-void function,Daniel Dunbar2009-01-151-3/+2
| | | | | | and uninitialized use options. llvm-svn: 62270
* Fix a misleading comment.Steve Naroff2009-01-101-4/+4
| | | | llvm-svn: 62031
* This patch fixes the code gen failures which was a fallout fromFariborz Jahanian2009-01-101-9/+6
| | | | | | | | not merging protocol properties into the classes which use those protocols. With this patch, all my exceutable test pass again. llvm-svn: 62030
* assert if attempting to code gen. a property setter/getterFariborz Jahanian2009-01-101-0/+4
| | | | | | coming from a protocol. llvm-svn: 62017
* Couple of code gen. fixes in ObjC's colection-statement. HardFariborz Jahanian2009-01-061-1/+3
| | | | | | to track down, easy to fix. This is on going. llvm-svn: 61817
* Removed a slot in ObjCMemRegExpr used inFariborz Jahanian2008-12-181-2/+2
| | | | | | code gen which did not belong there. llvm-svn: 61203
* Code gen. for ivar references; including bitfieldFariborz Jahanian2008-12-151-1/+3
| | | | | | ivars. llvm-svn: 61043
* Store the size of the EH stack inside each BreakContinue struct so we know ↵Anders Carlsson2008-12-131-1/+2
| | | | | | when a break/continue won't cross a try block. llvm-svn: 60998
* Patch for ObjCIvarRefExpr containing the fieldFariborz Jahanian2008-12-131-1/+3
| | | | | | matching the storage layout for this ivar llvm-svn: 60996
* Support for implementation of property in the case whereFariborz Jahanian2008-12-091-6/+8
| | | | | | | the synthesis is in an implementation of s subclass of a super class where the property has been declared. llvm-svn: 60792
* Change condition under which 'retain'/'copy' are directly evaluated.Fariborz Jahanian2008-12-081-4/+6
| | | | llvm-svn: 60729
* Code gen for aggregate-valued properties and a test case.Fariborz Jahanian2008-11-261-4/+7
| | | | llvm-svn: 60122
* Fix 80-col violations.Daniel Dunbar2008-11-251-2/+4
| | | | llvm-svn: 60051
* Implemented ir-gen for 'implicit' properties using the new AST nodes.Fariborz Jahanian2008-11-221-12/+33
| | | | llvm-svn: 59886
* New AST node to access "implicit" setter/getter using property dor syntax.Fariborz Jahanian2008-11-221-26/+7
| | | | | | | Issuing diagnostics when assigning to read-only properties. This is work in progress. llvm-svn: 59874
* Consolidated @try and @synchronize into a singleFariborz Jahanian2008-11-211-2/+2
| | | | | | code gen. method. llvm-svn: 59767
* Rename IdentifierInfo::isName to ::isStr. Use a nifty trickChris Lattner2008-11-201-1/+1
| | | | | | | from Sebastian to enforce that a literal string is passed in, and use this to avoid having to call strlen on it. llvm-svn: 59706
* fix save-oChris Lattner2008-11-191-1/+1
| | | | llvm-svn: 59611
* simplifyChris Lattner2008-11-191-1/+1
| | | | llvm-svn: 59610
* This reworks some of the Diagnostic interfaces a bit to change how diagnosticsChris Lattner2008-11-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are formed. In particular, a diagnostic with all its strings and ranges is now packaged up and sent to DiagnosticClients as a DiagnosticInfo instead of as a ton of random stuff. This has the benefit of simplifying the interface, making it more extensible, and allowing us to do more checking for things like access past the end of the various arrays passed in. In addition to introducing DiagnosticInfo, this also substantially changes how Diagnostic::Report works. Instead of being passed in all of the info required to issue a diagnostic, Report now takes only the required info (a location and ID) and returns a fresh DiagnosticInfo *by value*. The caller is then free to stuff strings and ranges into the DiagnosticInfo with the << operator. When the dtor runs on the DiagnosticInfo object (which should happen at the end of the statement), the diagnostic is actually emitted with all of the accumulated information. This is a somewhat tricky dance, but it means that the accumulated DiagnosticInfo is allowed to keep pointers to other expression temporaries without those pointers getting invalidated. This is just the minimal change to get this stuff working, but this will allow us to eliminate the zillions of variant "Diag" methods scattered throughout (e.g.) sema. For example, instead of calling: Diag(BuiltinLoc, diag::err_overload_no_match, typeNames, SourceRange(BuiltinLoc, RParenLoc)); We will soon be able to just do: Diag(BuiltinLoc, diag::err_overload_no_match) << typeNames << SourceRange(BuiltinLoc, RParenLoc)); This scales better to support arbitrary types being passed in (not just strings) in a type-safe way. Go operator overloading?! llvm-svn: 59502
* Start implementing support for @synchonized with the darwin ObjC API.Chris Lattner2008-11-151-0/+6
| | | | | | Patch by Fariborz! llvm-svn: 59377
* Rework IRgen invariant w.r.t. current insert point.Daniel Dunbar2008-11-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - EmitStmt is no longer required to finish with a current insertion point defined (i.e. it does not need to make dummy blocks). Instead, it can clear the insertion point in the builder which indicates that the current insertion point is unreachable. - CodeGenFunction provides HaveInsertPoint and EnsureInsertPoint which respectively test if there is an insert point and ensure an insertion point exists (by making a dummy block). - Clearly mark functions in CodeGenFunction which can be called with no insertion point defined. Currently this is a limited set, and EmitStmt simply EnsureInsertPoint()s before emitting subsequent IR. Remove EmitDummyBlock, which is no longer needed. Clients who haven't already cleared the insertion point (typically via EmitBranch) can do so by hand. Remove isDummyBlock, which has effectively been renamed to HaveInsertPoint. The main thrust of this change is that we no longer have create dummy blocks just to destroy them a short time later in EmitBlock in the common case that there is no unreachable code following something like a goto. Additionally, this means that we are not using the hokey condition in isDummyBlock that a block without a name is a dummy block. Guess how well that works when we never emit block names! llvm-svn: 59089
* Centralize basic block creation in CodeGenFunction::createBasicBlock.Daniel Dunbar2008-11-111-10/+9
| | | | | | - No functionality change. llvm-svn: 59017
* Add a new expression class, ObjCSuperExpr, to handle the Objective-C ↵Douglas Gregor2008-11-041-3/+1
| | | | | | 'super'. Remove ObjCThis from PredefinedExpr llvm-svn: 58698
OpenPOWER on IntegriCloud