summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
Commit message (Collapse)AuthorAgeFilesLines
* Test case for previosu patch.Fariborz Jahanian2012-04-261-0/+20
| | | | | | // rdar://11323676 llvm-svn: 155664
* Forward declarations should take a context. This helps the debuggerEric Christopher2012-04-232-2/+2
| | | | | | | | | find forward declarations in the context that the actual definition will occur. rdar://11291658 llvm-svn: 155381
* minor improvement to couple of tests.Fariborz Jahanian2012-04-201-0/+2
| | | | llvm-svn: 155204
* Implements boxed expressions for Objective-C. <rdar://problem/10194391>Patrick Beard2012-04-191-1/+15
| | | | llvm-svn: 155082
* The copy and destroy helper functions aren't prototyped, don't call themEric Christopher2012-04-121-1/+1
| | | | | | so. llvm-svn: 154569
* Add a triple to this test.Eric Christopher2012-04-111-1/+1
| | | | llvm-svn: 154485
* Try to fix the windows buildbots by making this test a little lessEric Christopher2012-04-111-1/+1
| | | | | | dependent upon metadata ordering. llvm-svn: 154482
* Enable debug info for objective c implementations that may not haveEric Christopher2012-04-114-4/+20
| | | | | | | | an explicit instance variable. rdar://10590352 llvm-svn: 154481
* Revert r154321, pending more discussion.David Chisnall2012-04-091-13/+0
| | | | llvm-svn: 154327
* Add -fobjc-trace to emit a call before and after each Objective-C message sendDavid Chisnall2012-04-091-0/+13
| | | | | | for hooking in code flow visualisation applications. llvm-svn: 154321
* Enhance testing a bit to make sure that we're omitting theEric Christopher2012-04-051-0/+2
| | | | | | | | | getter and setter when they're synthesized with the default names. rdar://11179756 llvm-svn: 154130
* Only emit the getter and setter names if they're not the defaultEric Christopher2012-04-053-5/+1
| | | | | | | | synthesized ones. Reasonable debug info size reduction for objc. rdar://11179756 llvm-svn: 154129
* Enter an expression evaluation context when parsingJohn McCall2012-04-041-0/+7
| | | | | | | statement-expressions. Prevents cleanups and such from being claimed by the first full-expression in the block. llvm-svn: 153989
* Change location information for synthesized properties to be at theEric Christopher2012-04-033-2/+37
| | | | | | | | | | | | | | | | | | property file/line rather than the @synthesize file/line. Avoids some nasty confusing-ness with conflating the file from the scope and the line from the original declaration. Use the current scope location as a separate parameter so that we can match it up better in the line table with the beginning of the scope. Update a couple of testcases accordingly since I had to change that we actually use the passed in location in EmitFunctionStart and for the new metadata parameter and add a new testcase to make sure we've got the right line numbers for synthesized properties. Part of rdar://11026482 llvm-svn: 153917
* Revert previous commit changing location information to see if thisEric Christopher2012-03-303-37/+2
| | | | | | is causing the gdb test failures on the bots. llvm-svn: 153727
* Make sure we perform the relevant implied conversions correctly for ObjC ↵Eli Friedman2012-03-301-12/+4
| | | | | | methods with related result types. PR12384. llvm-svn: 153716
* Testcase for the previous commit.Eric Christopher2012-03-301-0/+34
| | | | llvm-svn: 153715
* Change location information for synthesized properties to be at theEric Christopher2012-03-302-2/+3
| | | | | | | | | | | | | property file/line rather than the @synthesize file/line. Avoids some nasty confusing-ness with conflating the file from the scope and the line from the original declaration. Update a couple of testcases accordingly since I had to change that we actually use the passed in location in EmitFunctionStart. Fixes rdar://11026482 llvm-svn: 153714
* The UTF16 string referenced by a CFString should go into the __TEXT,__ustringBill Wendling2012-03-301-1/+1
| | | | | | | | | | | | | section. A 'normal' string will go into the __TEXT,__const section, but this isn't good for UTF16 strings. The __ustring section allows for coalescing, among other niceties (such as allowing the linker to easily split up strings). Instead of outputting the UTF16 string as a series of bytes, output it as a series of shorts. The back-end will then nicely place the UTF16 string into the correct section, because it's a mensch. <rdar://problem/10655949> llvm-svn: 153710
* Go back to using just the selector name for the getter and setterEric Christopher2012-03-291-1/+1
| | | | | | | | in the property debug info. Any more isn't necessary after all. rdar://11144023 llvm-svn: 153659
* Add support for objc property decls according to the page at:Eric Christopher2012-03-291-1/+1
| | | | | | | | | | | http://llvm.org/docs/SourceLevelDebugging.html#objcproperty including type and DECL. Expand the getter and setter names into the fully qualified names. rdar://11144023 llvm-svn: 153640
* Add clang support for new Objective-C literal syntax for NSDictionary, NSArray,Ted Kremenek2012-03-069-0/+447
| | | | | | | | | | | | | NSNumber, and boolean literals. This includes both Sema and Codegen support. Included is also support for new Objective-C container subscripting. My apologies for the large patch. It was very difficult to break apart. The patch introduces changes to the driver as well to cause clang to link in additional runtime support when needed to support the new language features. Docs are forthcoming to document the implementation and behavior of these features. llvm-svn: 152137
* Test is fixed.Fariborz Jahanian2012-02-231-9/+15
| | | | llvm-svn: 151280
* XFAIL test until I figure out how to make test pass on different platforms.Fariborz Jahanian2012-02-231-0/+1
| | | | llvm-svn: 151277
* Change test again so it passes in build-bot until I can figure out what isFariborz Jahanian2012-02-231-2/+2
| | | | | | going on. llvm-svn: 151275
* fix test for patch in r151268.Fariborz Jahanian2012-02-231-2/+2
| | | | llvm-svn: 151272
* objective-c default synthesis. classes which adopt protocol propertiesFariborz Jahanian2012-02-231-0/+30
| | | | | | | must still auto synthesize those propeties which have been redeclared in the class. // rdar://10907410 llvm-svn: 151268
* Try to handle qualifiers more consistently for array InitListExprs. Fixes ↵Eli Friedman2012-02-231-0/+4
| | | | | | | | <rdar://problem/10907510>, and makes the ASTs a bit more self-consistent. (I've chosen to keep the qualifiers, but it isn't a strong preference; if anyone prefers removing them, please yell.) llvm-svn: 151229
* Make sure null initialization in arrays works correctly with ARC types. ↵Eli Friedman2012-02-221-0/+12
| | | | | | <rdar://problem/10907547>. llvm-svn: 151133
* objc IRGen: force CSE of load of ivar offsets by settingFariborz Jahanian2012-02-201-0/+29
| | | | | | | the 'invariant.load' metadata tag onto those loads. // rdar://10840980 llvm-svn: 150994
* Make test case less sensitive to metadata numbering.Chad Rosier2012-02-201-1/+1
| | | | llvm-svn: 150983
* Remove the type retaining from the clang frontend. This is nowEric Christopher2012-02-201-1/+1
| | | | | | | | | | handled by the caching and rauw. Also fix one cache that wasn't being added to highlighted by this patch. Update all testcases accordingly. This should fix the deall failure. llvm-svn: 150977
* Whether an argument is required (in contrast with being anJohn McCall2012-02-171-4/+4
| | | | | | | | | | | | | | | | | | | | | optional argument passed through the variadic ellipsis) potentially affects how we need to lower it. Propagate this information down to the various getFunctionInfo(...) overloads on CodeGenTypes. Furthermore, rename those overloads to clarify their distinct purposes, and make sure we're calling the right one in the right place. This has a nice side-effect of making it easier to construct a function type, since the 'variadic' bit is no longer separable. This shouldn't really change anything for our existing platforms, with one minor exception --- we should now call variadic ObjC methods with the ... in the "right place" (see the test case), which I guess matters for anyone running GNUStep on MIPS. Mostly it's just a substantial clean-up. llvm-svn: 150788
* Fix this test to work with and without Asserts mode.Dan Gohman2012-02-161-13/+10
| | | | llvm-svn: 150713
* Fix test to not depend upon metadata numbers.Bill Wendling2012-02-161-1/+1
| | | | llvm-svn: 150668
* test/CodeGenObjC/arc-no-arc-exceptions.m: Disable it at -Asserts for now.NAKAMURA Takumi2012-02-161-0/+3
| | | | llvm-svn: 150666
* Fix test for r150648.Chad Rosier2012-02-161-7/+7
| | | | llvm-svn: 150650
* Use the new method for specifying garbage collection metadata in the module.Bill Wendling2012-02-163-5/+12
| | | | | | | | | | The garbage collection metadata needs to be merged "intelligently", when two or more modules are linked together, and not merely appended. (Appending creates a section which is too large.) The module flags metadata method is the way to do this. <rdar://problem/8198537> llvm-svn: 150648
* Teach clang to add metadata tags to calls and invokes in ObjC withDan Gohman2012-02-161-0/+78
| | | | | | | | | -fno-objc-arc-exceptions. This will allow the optimizer to perform optimizations which are only safe under that flag. This is a part of rdar://10803830. llvm-svn: 150644
* objc-arc: For arc's ivar layout, treat __unsafe_unretained ivarsFariborz Jahanian2012-02-161-0/+11
| | | | | | as unscanned. // rdar://10832643 llvm-svn: 150639
* Emit debug info for properites that are not backed by an ivar.Devang Patel2012-02-071-0/+32
| | | | llvm-svn: 149995
* Relax valid location check. This fixes a clang crash while emitting debug ↵Devang Patel2012-02-061-0/+17
| | | | | | info for properties that are synthesized by the compiler by default. llvm-svn: 149929
* Let an ivar directly refer property TAG.Devang Patel2012-02-061-0/+4
| | | | llvm-svn: 149881
* Unbreak failing test added in r149738.Richard Smith2012-02-041-1/+1
| | | | llvm-svn: 149766
* New test case.Devang Patel2012-02-041-0/+12
| | | | llvm-svn: 149738
* Update tests so that they don't rely upon LLVMDebugVersion number.Devang Patel2012-02-034-4/+4
| | | | llvm-svn: 149726
* fix test.Fariborz Jahanian2012-01-311-2/+2
| | | | llvm-svn: 149313
* test for a v-table dispatch that consumes anFariborz Jahanian2012-01-301-0/+32
| | | | | | | argument. twik to support the test case. // rdar://10444476 llvm-svn: 149298
* objc-arc: Perform null check on receiver before sending methods whichFariborz Jahanian2012-01-301-2/+7
| | | | | | | | | consume one or more of their arguments. If not done, this will cause a leak as method will not consume the argument when receiver is null. In this patch, the null path releases consumed argument. // rdar://10444474 llvm-svn: 149279
* revert r149184Fariborz Jahanian2012-01-291-6/+2
| | | | llvm-svn: 149205
OpenPOWER on IntegriCloud