summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
Commit message (Collapse)AuthorAgeFilesLines
* Fix for PR8695.David Chisnall2010-12-261-0/+5
| | | | llvm-svn: 122564
* Add -fobjc-default-synthesized-properties flagTed Kremenek2010-12-231-1/+1
| | | | | | | | | | | | to allow us to explicitly control whether or not Objective-C properties are default synthesized. Currently this feature only works when using the -fobjc-non-fragile-abi2 flag (so there is no functionality change), but we can now turn off this feature without turning off all the features coupled with -fobjc-non-fragile-abi2. llvm-svn: 122519
* ivars craeted for explicit @synthesize and thoseFariborz Jahanian2010-12-151-2/+2
| | | | | | | created for auto-synthesis are @private. Fixes: // rdar://8769582 llvm-svn: 121913
* Do unary conversions on vararg arguments and *then* special-case float.John McCall2010-12-061-0/+14
| | | | | | Fixes PR8742. llvm-svn: 121022
* Don't crash when initializing a subaggregate in C from a property r-value.John McCall2010-12-041-0/+12
| | | | llvm-svn: 120899
* Test case for the l-value base only being evaluated once.John McCall2010-12-041-1/+28
| | | | | | | | | | Also, move the l-value emission code into CGObjC.cpp and teach it, for completeness, to store away self for a super send. Also, inline the super cases for property gets and sets and make them use the correct result type for implicit getter/setter calls. llvm-svn: 120887
* IR Gen. part of API support for __block cxxFariborz Jahanian2010-12-021-4/+4
| | | | | | | | objects imported into blocks. //rdar://8594790. Will have a test case coming (as well as one sent to llvm test suite). llvm-svn: 120713
* Adding couple of Block API, a bug fix andFariborz Jahanian2010-11-111-2/+0
| | | | | | a test change, all for blocks. wip. llvm-svn: 118745
* test case for r118726.Devang Patel2010-11-101-0/+15
| | | | llvm-svn: 118727
* Restore patch reversed in r118475. FixesFariborz Jahanian2010-11-091-1/+1
| | | | | | // rdar://8632525 llvm-svn: 118634
* Reverse patch for // rdar://8632525. It mightFariborz Jahanian2010-11-091-1/+1
| | | | | | has broken a build. llvm-svn: 118475
* Provide a precise builtin declaration for objc_msgSendFariborz Jahanian2010-11-081-1/+1
| | | | | | to avoid a bogus warning. Fixes //rdar: //8632525 llvm-svn: 118451
* Tidy up MIPS_linkage name. Provide it only if it does not match regular ↵Devang Patel2010-10-221-1/+1
| | | | | | | | name, otherwise it confuses debugger. This is tested by local.C in llvmgcc testsuite. llvm-svn: 117107
* This patch implements Next's IRGen for -fconstant-string-class=class-name.Fariborz Jahanian2010-10-191-0/+34
| | | | | | PR6056, //rdar: //8564463 llvm-svn: 116819
* patch fixes class names missing from method names in debug information for Fariborz Jahanian2010-10-181-0/+50
| | | | | | synthesized property. // rdar: //8498026 llvm-svn: 116717
* Coding by inspection has its problems.John McCall2010-10-161-0/+4
| | | | llvm-svn: 116672
* objc_exception_rethrow does not take an exception argument.John McCall2010-10-161-0/+13
| | | | | | rdar://problem/8535238 llvm-svn: 116663
* Revert r116656, "IRgen/Obj-C/NeXT: Fix the IR signature forDaniel Dunbar2010-10-161-14/+0
| | | | | | | | objc_exception_rethrow, so we don't...", since something is actually trying to call this with the wrong signature (!). Unfortunately I don't understand the new EH infrastructure well enough to fix it immediately. llvm-svn: 116660
* IRgen/Obj-C/NeXT: Fix the IR signature for objc_exception_rethrow, so we don'tDaniel Dunbar2010-10-161-0/+14
| | | | | | generate unnecessary %al clear on x86_64. llvm-svn: 116656
* _Bool is not a keyword in C++. Fixes PR7388 and PR8349.Douglas Gregor2010-10-131-0/+5
| | | | llvm-svn: 116422
* Test for //rdar: //8493239Fariborz Jahanian2010-10-111-1/+2
| | | | llvm-svn: 116258
* IRgen/Obj-C: Fix encoding of "long double".Daniel Dunbar2010-10-111-0/+6
| | | | | | - The mind boggles. llvm-svn: 116226
* Merge encode-test-1.m into encode-test.mDaniel Dunbar2010-10-112-36/+29
| | | | llvm-svn: 116225
* FileCheck'ize test.Daniel Dunbar2010-10-111-6/+20
| | | | llvm-svn: 116224
* tests: Tweak test to also match MSVC format.Daniel Dunbar2010-10-071-1/+1
| | | | llvm-svn: 115969
* Re-enable EH cleanups to destroy __block variables, now that we have a moment toJohn McCall2010-10-061-6/+35
| | | | | | deal with the consequences. Fixes rdar://problem/8224178. llvm-svn: 115816
* In the fragile ObjC ABI, save the caught exception to the side if there areJohn McCall2010-10-041-0/+56
| | | | | | | both @catches and a @finally, because the second call to @objc_exception_try_enter will clobber the exception slot. Fixes rdar://problem/8440970. llvm-svn: 115575
* Restore test. Is for //rdar://8493239Fariborz Jahanian2010-10-011-0/+34
| | | | llvm-svn: 115349
* Remove test until further notice.Fariborz Jahanian2010-10-011-34/+0
| | | | llvm-svn: 115258
* Fix test.Fariborz Jahanian2010-10-011-1/+1
| | | | llvm-svn: 115253
* Output debug info. for ivars declared in classFariborz Jahanian2010-10-011-0/+34
| | | | | | | extension and implementation. Fixes rdar://8493239. llvm-svn: 115248
* Attach aritifical attribute with implicit parameters.Devang Patel2010-09-291-0/+16
| | | | | | Radar 8493141. llvm-svn: 115104
* update a bunch of tests that are using the x86 backend instead of grepping IR :(Chris Lattner2010-09-222-4/+4
| | | | llvm-svn: 114535
* Block description for trivial block literals haveFariborz Jahanian2010-09-131-0/+8
| | | | | | their 'isa' field scanned regardless. llvm-svn: 113749
* Fixes an obscure bug in importd block variable layoutFariborz Jahanian2010-09-111-0/+20
| | | | | | | | information when imported variable is used more than once. Originally though to be a bug in importing block varibles. Fixes radar 8417746. llvm-svn: 113675
* Block ivar layout must assume that the 'isa'Fariborz Jahanian2010-09-091-5/+5
| | | | | | | | field of the block descriptor is GC'able (scanned) as this what the runtime expects (one can send it messages). Radar 8394947. llvm-svn: 113454
* Local static block variable referecned in itsFariborz Jahanian2010-09-071-0/+57
| | | | | | | | block-literal initializer expression causes IRgen to crash. This patch fixes by saving it in StaticLocalDecl map already used for such purposes. (radar 8390455). llvm-svn: 113307
* LastFieldBitfield in CGObjCCommonMac::BuildAggrIvarLayout keeps bitfields or ↵Argyrios Kyrtzidis2010-09-061-0/+15
| | | | | | | | unnamed fields but later the code assumes that it's always a bitfield. This can lead to a crash (reported at rdar://8368320). llvm-svn: 113154
* Casting of a property reference to 'void' did notFariborz Jahanian2010-09-041-0/+18
| | | | | | | generate the necessary code. This patch fixes it. // rdar://8389655 llvm-svn: 113079
* tests: Fix a dependency on the temporary value names.Daniel Dunbar2010-09-031-1/+1
| | | | llvm-svn: 112917
* IRgen/Obj-C: Rewrite Objective-C bit-field access to compute the access strategyDaniel Dunbar2010-09-021-0/+43
| | | | | | | | using the same methods as used for normal structures. - This fixes problems with reading past the end of the structure and with handling straddled bit-field access. llvm-svn: 112914
* stop looking for #uses comments.Chris Lattner2010-09-021-1/+1
| | | | llvm-svn: 112898
* Robustify test.Devang Patel2010-08-251-4/+2
| | | | llvm-svn: 112062
* tests: Disable this test for now, it is overly pessimistic and I am not sure ↵Daniel Dunbar2010-08-251-0/+3
| | | | | | how to fix it. llvm-svn: 112023
* Support for IRGen of synthesize bitfield ivars inFariborz Jahanian2010-08-231-0/+51
| | | | | | objc-nonfragile-abi2 (radar 7824380). llvm-svn: 111823
* Patch to issue warning when colllection expresion's typeFariborz Jahanian2010-08-121-2/+2
| | | | | | | does not implement 'countByEnumeratingWithState' API. Implements radar 7634669. llvm-svn: 110964
* When re-raising an exception after a cleanup, we need to call ↵John McCall2010-08-111-1/+1
| | | | | | | | | | | | | | | | | | _Unwind_Resume_or_Rethrow instead of _Unwind_Resume. With SJLJ exceptions, this is spelled "_Unwind_SjLj_Resume_or_Rethrow", not "_Unwind_SjLj_Resume", which has significantly different semantics. We should actually never be generating a call to _Unwind_SjLj_Resume directly; even if we were generating true cleanups (which we aren't because of the horrible hack), we should be calling __cxa_end_cleanup() on ARM. I haven't implemented this because there's little point as long as the HH is present. I believe this fixes <rdar://problem/8281377>. llvm-svn: 110851
* IRGen support for functions returning objc objectFariborz Jahanian2010-08-111-0/+19
| | | | | | types. Fixes PR7865. llvm-svn: 110832
* Make this test a little less dependent on exact optimizer results.John McCall2010-08-111-6/+6
| | | | llvm-svn: 110770
* Fix a bug in @finally emission in both the fragile and non-fragile EH schemesJohn McCall2010-08-111-0/+51
| | | | | | | | | where we weren't accounting for the possibility that a @finally block might have internal cleanups and therefore might write to the cleanup destination slot. Fixes <rdar://problem/8293901>. llvm-svn: 110760
OpenPOWER on IntegriCloud