summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
Commit message (Collapse)AuthorAge
...
* More objc2's ivar layout bitmap.Fariborz Jahanian2009-03-12
| | | | | | | | | bitmap generation for basic ivars seem to work now. This is work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66836 91177308-0d34-0410-b5e6-96231b3b80d8
* Code refactoring. No change in functionality.Fariborz Jahanian2009-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66710 91177308-0d34-0410-b5e6-96231b3b80d8
* More of objc2's ivar layout bitmap (Next: specific).Fariborz Jahanian2009-03-11
| | | | | | | Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66707 91177308-0d34-0410-b5e6-96231b3b80d8
* More Next objc2's gc ivar layout bitmap work.Fariborz Jahanian2009-03-11
| | | | | | | Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66615 91177308-0d34-0410-b5e6-96231b3b80d8
* More objc2's gc meta-data work related to ivar layout bitmap.Fariborz Jahanian2009-03-10
| | | | | | | Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66546 91177308-0d34-0410-b5e6-96231b3b80d8
* NeXT: Set alignment on a number of ObjC metadata variables (matching llvm-gcc).Daniel Dunbar2009-03-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66481 91177308-0d34-0410-b5e6-96231b3b80d8
* NeXT: Move some routines over to CreateMetadataVar.Daniel Dunbar2009-03-09
| | | | | | | - No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66473 91177308-0d34-0410-b5e6-96231b3b80d8
* Tweak CreateMetadataVar, take the exact alignment instead of relyingDaniel Dunbar2009-03-09
| | | | | | | on LLVM TargetData. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66455 91177308-0d34-0410-b5e6-96231b3b80d8
* More fix for bitfield ivar meta-data and code gen accessing it.Fariborz Jahanian2009-03-09
| | | | | | | | Now, we can actually execute dejagnu test with bitfield ivars in non-fragile abi mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66448 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo in pref commit.Daniel Dunbar2009-03-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66433 91177308-0d34-0410-b5e6-96231b3b80d8
* NeXT: Add CreateMetadataVar utility method to encapsulate creation ofDaniel Dunbar2009-03-09
| | | | | | | | | Obj-C metadata variables (which generally should be handled the same, although they aren't currently). - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66432 91177308-0d34-0410-b5e6-96231b3b80d8
* Code refactoring. No functional change.Fariborz Jahanian2009-03-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66391 91177308-0d34-0410-b5e6-96231b3b80d8
* correct bitfield ivar offset in ivar meta-data.Fariborz Jahanian2009-03-07
| | | | | | | (objc abi specific). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66345 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup our uses of various linkages to match how llvm now works. I think ↵Mike Stump2009-03-07
| | | | | | | | | they are all correct, but an extra set of ObjC eyes would be good. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66342 91177308-0d34-0410-b5e6-96231b3b80d8
* Back out the patch in r66302, and re-fix it properly. We assume for Eli Friedman2009-03-07
| | | | | | | | | | performance that the type of the returned llvm::Value for an expression matches the converted type of the clang::Expr; mismatches will cause all sorts of errors and silent miscompilations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66321 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup EH a bit given changes to ObjCCatchStmt.Daniel Dunbar2009-03-06
| | | | | | | - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66218 91177308-0d34-0410-b5e6-96231b3b80d8
* More function stop for objc2's ivar layout bit map.Fariborz Jahanian2009-03-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66209 91177308-0d34-0410-b5e6-96231b3b80d8
* Adds a template for a function for objc2's gc's ivar layoutFariborz Jahanian2009-03-05
| | | | | | | bitmap. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66175 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor code. Devang Patel2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66043 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix <rdar://problem/6640991> Exception handling executes wrong clause ↵Steve Naroff2009-03-03
| | | | | | | | | | | | | (Daniel, please verify). Also necessary to fix: <rdar://problem/6632061> [sema] non object types should not be allowed in @catch statements <rdar://problem/6252237> [sema] qualified id should be disallowed in @catch statements git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65964 91177308-0d34-0410-b5e6-96231b3b80d8
* First cut at zero-cost EH support.Daniel Dunbar2009-03-02
| | | | | | | | | | | | - Still manually generates the EH code; the parts related to cleanup need to be integrated into the cleanup stack (for proper interaction with VLAs, etc.). - Some differences vs gcc in corner cases; I believe our behavior is correct but need to verify/file bugs vs gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65809 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to invoke (not call) to objc_exception_throw if necessary.Daniel Dunbar2009-03-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65808 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix completely broken thinko in GetClassGlobal.Daniel Dunbar2009-03-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65807 91177308-0d34-0410-b5e6-96231b3b80d8
* Obj-C non fragile ABI: Use GetClassGlobal in one more instance I missed.Daniel Dunbar2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65762 91177308-0d34-0410-b5e6-96231b3b80d8
* Obj-C non fragile ABI: Add GetInterfaceEHType for getting the Obj-CDaniel Dunbar2009-03-01
| | | | | | | | exception typeinfo metadata, and a few other EH related types/functions. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65761 91177308-0d34-0410-b5e6-96231b3b80d8
* NeXT: Unify code for creating a class global.Daniel Dunbar2009-03-01
| | | | | | | - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65760 91177308-0d34-0410-b5e6-96231b3b80d8
* ObjCAtCatchStmt's ParamStmt is always a DeclStmt.Daniel Dunbar2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65759 91177308-0d34-0410-b5e6-96231b3b80d8
* Obscure code gen bug related to sending Fariborz Jahanian2009-02-28
| | | | | | | | message to 'super' in a class method declared in cateogy (darwin specific). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65709 91177308-0d34-0410-b5e6-96231b3b80d8
* Alignment of pointers in __objc_classlist must be on theirFariborz Jahanian2009-02-28
| | | | | | | | natural alignment. Otherwise, the excess hole confuses the objc2 runtime (this is darwin specific). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65666 91177308-0d34-0410-b5e6-96231b3b80d8
* Couple of meta-data segments were wrong. This patch fixes them.Fariborz Jahanian2009-02-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65578 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an inconsistance in objc2's meta-data related toFariborz Jahanian2009-02-26
| | | | | | | the symbol for the root meta-data. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65548 91177308-0d34-0410-b5e6-96231b3b80d8
* patch for two things.Fariborz Jahanian2009-02-24
| | | | | | | | | make sure objc2's nonfragile abi is enacted for Leopard too. add -fobjc-gc-only flag to the image_info symbol. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65413 91177308-0d34-0410-b5e6-96231b3b80d8
* Set flag for -fobjc-gc in IMAGE_INFO variable.Fariborz Jahanian2009-02-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65387 91177308-0d34-0410-b5e6-96231b3b80d8
* Some initial Obj-C zero cost EH support.Daniel Dunbar2009-02-24
| | | | | | | | | | - Only handles cases with @try with no @catch blocks, and there are a number of problems with the implementation. Nevertheless, this is good enough to handled @synchronized correctly, and some other basic uses. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65378 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix two @synchronized bugs found by inspection: the expression to sychronize ↵Daniel Dunbar2009-02-24
| | | | | | | | | | on should only be evaluated once, and it is evaluated outside the cleanup scope. Also, lift SyncEnter and SyncExit up in nervous anticipation of x86-64 zero cost EH. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65362 91177308-0d34-0410-b5e6-96231b3b80d8
* More objc's gc ir-gen stuff.Fariborz Jahanian2009-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65077 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for throwing exceptions to the nonfragile ABIAnders Carlsson2009-02-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64692 91177308-0d34-0410-b5e6-96231b3b80d8
* Added implementation of objc2's gc API calls forFariborz Jahanian2009-02-16
| | | | | | | nonfragile abi. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64690 91177308-0d34-0410-b5e6-96231b3b80d8
* assert/ErrorUnsupported in unimplemented stub functions instead ofDaniel Dunbar2009-02-16
| | | | | | | miscompiling. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64647 91177308-0d34-0410-b5e6-96231b3b80d8
* Obj-C non-fragile ABI: Fix types of a few globals; these were notDaniel Dunbar2009-02-15
| | | | | | | creating valid LLVM structures (although they work fined). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64580 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bad ir-gen bug which caused a dejagnu test to fail.Fariborz Jahanian2009-02-14
| | | | | | | | Now we are pretty close to be in sync with objc's classic abi when it comes to passing dejagnu objc executable tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64569 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a problem caused by foreward @class useFariborz Jahanian2009-02-14
| | | | | | | | | which consequently caused a Seg fault. during meta-data generation. It also addresses an issue related to late binding of newly synthesize ivars (when we support it). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64563 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a 64bit code gen bug of a cateogoryFariborz Jahanian2009-02-13
| | | | | | | | implementation with no category declaration! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64470 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug whereby, an ivar used to synthesize a property belongsFariborz Jahanian2009-02-12
| | | | | | | to a base class (nonfragile abi ir gen bug). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64391 91177308-0d34-0410-b5e6-96231b3b80d8
* Several cleanups:Steve Naroff2009-02-12
| | | | | | | | | - rename isObjCIdType/isObjCClassType -> isObjCIdStructType/isObjCClassStructType. The previous name didn't do what you would expect. - add back isObjCIdType/isObjCClassType to do what you would expect. Not currently used, however many of the isObjCIdStructType/isObjCClassStructType clients could be converted over time. - move static Sema function areComparableObjCInterfaces to ASTContext (renamed to areComparableObjCPointerTypes, since it now operates on pointer types). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64385 91177308-0d34-0410-b5e6-96231b3b80d8
* ir-gen for objc's @selector expression in nonfragile abi mode.Fariborz Jahanian2009-02-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64323 91177308-0d34-0410-b5e6-96231b3b80d8
* This patch is all it takes to pass all objc2's fast-enumerationFariborz Jahanian2009-02-10
| | | | | | | tests in the dejagnu test suite in the nonfragile abi mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64251 91177308-0d34-0410-b5e6-96231b3b80d8
* Generate ir for ivar offset. This will passFariborz Jahanian2009-02-10
| | | | | | | | type-nsobject-attribute.m in the dejagnu test suite in the nonfragile abi mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64233 91177308-0d34-0410-b5e6-96231b3b80d8
* Some refactoring of Ivar offset code gen.Fariborz Jahanian2009-02-10
| | | | | | | in preparation for nonfragile ivar offset work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64225 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the last remnants of the Obj-C EH stack code.Anders Carlsson2009-02-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64205 91177308-0d34-0410-b5e6-96231b3b80d8