summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
Commit message (Collapse)AuthorAgeFilesLines
...
* Objective-C. Remove an assertion which assertsFariborz Jahanian2014-02-241-0/+8
| | | | | | | on correctly handled block layout IRGen. // rdar://16111839 llvm-svn: 202063
* Do not put instrumentation counters before phis in ObjC for-in loops.Bob Wilson2014-02-242-0/+45
| | | | | | | We still don't use the PGO to set branch weights for these loops, but at least this keeps the compiler from crashing. <rdar://problem/16137778> llvm-svn: 202002
* Fix broken CHECK linesNico Rieck2014-02-162-2/+2
| | | | llvm-svn: 201477
* Fix broken RUN linesNico Rieck2014-02-161-1/+1
| | | | llvm-svn: 201475
* [IRGen]. Fixes a crash in using Objective-C array Fariborz Jahanian2014-02-141-0/+30
| | | | | | | | | properties by fixing shouldBindAsLValue to accept arrays (like record types) because we always manipulate them in memory. Patch suggested by John MaCall. // rdar://15610943 llvm-svn: 201428
* relax testcase and make ppc64 buildbots happy.Adrian Prantl2014-02-121-4/+4
| | | | llvm-svn: 201250
* Document and improve the debug-property-synth.m test based on theAdrian Prantl2014-02-121-6/+22
| | | | | | information provided in the referenced radar. llvm-svn: 201248
* Revert "Remove bad debug info test."Adrian Prantl2014-02-121-0/+20
| | | | | | | | This reverts commit r201183. The test, albeit undocumented and badly written is still testing something useful. It will be updated in a subsequent commit. llvm-svn: 201247
* Remove bad debug info test.David Blaikie2014-02-111-20/+0
| | | | | | | | | | Another test that's testing through assembly from Clang which is problematic. An attempt to upgrade this to just be an IR-generation test was unsuccessful (I was unable to get this test to fail) but it looks like there's other, better, test coverage in this area (test/CodeGenObjC/debuginfo-properties.m) anyway. llvm-svn: 201183
* Use an Itanium triple in DWARF debug info testsTimur Iskhodzhanov2014-01-308-8/+15
| | | | | | This should fix the clang part of the breakage in r200340. llvm-svn: 200435
* Objective-C [IRGen]. Generator a tail call to objc_getProperty() in Fariborz Jahanian2014-01-303-4/+4
| | | | | | | synthesized getters for performance improvement. // rdar://15884113 llvm-svn: 200430
* Objective-C. provide legacy encoding of *id and *Class typesFariborz Jahanian2014-01-281-0/+8
| | | | | | instead of crashing. // rdar://15824769. llvm-svn: 200338
* Use private linkage for utf-16 objc strings too.Rafael Espindola2014-01-212-2/+2
| | | | llvm-svn: 199709
* Give explicit sections for string constants used in NSStrings.Rafael Espindola2014-01-203-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without them they can be merged with non unnamed_addr constants during LTO. The resulting constant is not unnamed_addr and goes in a different section, which causes ld64 to crash. A testcase that would crash before: * file1.mm: void g(id notification) { [notification valueForKey:@"name"]; } * file2.cpp: extern const char js_name_str[] = "name"; * file3.cpp extern bool JS_GetProperty(const char *name); extern const char js_name_str[]; bool js_ReportUncaughtException() { JS_GetProperty(js_name_str); } run clang file1.mm -o file1.o -c -w -emit-llvm clang file2.cpp -o file2.o -c -w -emit-llvm clang file3.cpp -o file3.o -c -w ld -dylib -o XUL file1.o file2.o file3.o -undefined dynamic_lookup. llvm-svn: 199688
* Add a triple. Should fix the 64 bit bots.Rafael Espindola2014-01-201-1/+1
| | | | llvm-svn: 199670
* Make the test more strict.Rafael Espindola2014-01-201-1/+3
| | | | llvm-svn: 199669
* Remove the -cxx-abi command-line flag.Hans Wennborg2014-01-142-2/+2
| | | | | | | | | | | | | | | This makes the C++ ABI depend entirely on the target: MS ABI for -win32 triples, Itanium otherwise. It's no longer possible to do weird combinations. To be able to run a test with a specific ABI without constraining it to a specific triple, new substitutions are added to lit: %itanium_abi_triple and %ms_abi_triple can be used to get the current target triple adjusted to the desired ABI. For example, if the test suite is running with the i686-pc-win32 target, %itanium_abi_triple will expand to i686-pc-mingw32. Differential Revision: http://llvm-reviews.chandlerc.com/D2545 llvm-svn: 199250
* Update tests in preparation for using the MS ABI for Win32 targetsHans Wennborg2014-01-132-4/+6
| | | | | | | | | | In preparation for making the Win32 triple imply MS ABI mode, make all tests pass in this mode, or make them use the Itanium mode explicitly. Differential Revision: http://llvm-reviews.chandlerc.com/D2401 llvm-svn: 199130
* Re-applying r198699 after reverting r198461.Adrian Prantl2014-01-072-6/+7
| | | | | | | | Debug info: Implement a cleaner version of r198461. For symmetry with C and C++ don't emit an extra lexical scope for the compound statement that is the body of an Objective-C method. llvm-svn: 198715
* Revert "Debug info: Ensure that the last stop point in a function is still ↵Adrian Prantl2014-01-071-4/+1
| | | | | | | | within" This reverts commit r198461. llvm-svn: 198714
* Revert "Debug info: Implement a cleaner version of r198461. For symmetry with"Adrian Prantl2014-01-072-5/+7
| | | | | | This reverts commit 198699 so we can get a cleaner patch. llvm-svn: 198713
* Debug info: Implement a cleaner version of r198461. For symmetry withAdrian Prantl2014-01-072-7/+5
| | | | | | | | | C and C++ don't emit an extra lexical scope for the compound statement that is the body of an Objective-C method. rdar://problem/15010825 llvm-svn: 198699
* Debug info: Ensure that the last stop point in a function is still withinAdrian Prantl2014-01-031-1/+4
| | | | | | | | | the lexical block formed by the compound statement that is the function body. rdar://problem/15010825 llvm-svn: 198461
* ObjectiveC. support "section" attribute on propertiesFariborz Jahanian2013-12-181-0/+13
| | | | | | and methods. rdar://15450637 llvm-svn: 197625
* Implement the MSABI and SysVABI calling conventions for Objective-C method ↵Aaron Ballman2013-12-181-2/+4
| | | | | | declarations. This appears to be an omission from r189644. llvm-svn: 197584
* Remove duplicated -cc1 in testsAlp Toker2013-12-082-3/+3
| | | | llvm-svn: 196728
* Fix a tranche of comment, test and doc typosAlp Toker2013-12-052-2/+2
| | | | llvm-svn: 196510
* clang/test: REQUIRES: s/x86-64-registered-target/x86-registered-target/NAKAMURA Takumi2013-12-0412-12/+12
| | | | llvm-svn: 196350
* Check IR on this test.Rafael Espindola2013-12-031-10/+6
| | | | llvm-svn: 196287
* Improving calling convention test coverage by adding tests for things not ↵Aaron Ballman2013-11-191-0/+11
| | | | | | currently handled. Specifically: the diagnostics in SemaDeclAttr.cpp, and ensuring that calling convention attributes are applied to ObjC method declarations. No functional changes. llvm-svn: 195098
* ObjectiveC IRGen. Replace _objc_empty_vtable pointer in Objective-C Fariborz Jahanian2013-10-241-0/+10
| | | | | | class metadata for certain deployment targets. // rdar://14802916 llvm-svn: 193359
* Emit a .ident saying that clang produced this file.Rafael Espindola2013-10-161-3/+3
| | | | | | Patch by Katya Romanova. llvm-svn: 192832
* Replace -fobjc-default-synthesize-properties with ↵Rafael Espindola2013-09-277-7/+7
| | | | | | | | | disable-objc-default-synthesize-properties. We want the modern behavior most of the time, so inverting the option simplifies the driver and the tests. llvm-svn: 191551
* Debug info: Fix a crash when trying to construct a type with redundantAdrian Prantl2013-09-261-0/+23
| | | | | | | ownership qualifiers. Fixes rdar://problem/14990656. llvm-svn: 191463
* ObjectiveC: Allow NS_RETURNS_INNER_POINTER annotation Fariborz Jahanian2013-09-191-1/+46
| | | | | | | | | | of ObjectiveC properties to mean annotation of NS_RETURNS_INNER_POINTER on its synthesized getter. This also facilitates more migration to properties when methods are annotated with NS_RETURNS_INNER_POINTER. // rdar://14990439 llvm-svn: 191009
* Add a define for the ObjFW runtime ABI version.Benjamin Kramer2013-09-161-2/+2
| | | | | | | | | This removes __has_feature(objc_msg_lookup_stret), as it is not required anymore after this patch. Patch by Jonathan Schleifer! llvm-svn: 190791
* Don't pass -O0 to clang_cc1, it is the default.Rafael Espindola2013-09-0414-17/+17
| | | | llvm-svn: 189910
* Debug Info: follow-up patch to r189283.Manman Ren2013-08-261-1/+1
| | | | | | | Thanks David for his suggestion. This commit updates testing cases to have more specific CHECKs. llvm-svn: 189286
* Debug Info: add an identifier field to DICompositeType.Manman Ren2013-08-261-1/+1
| | | | | | | Paired with llvm r189282. Update testing cases to handle an extra field for DICompositeType. llvm-svn: 189283
* Simplify assert-neutral matching in test case.David Blaikie2013-08-191-1/+1
| | | | | | | Originally committed in r188651, improved/fixed to be assert-neutral by Takumi in r188661. llvm-svn: 188686
* clang/test/CodeGenObjC/2010-02-09-DbgSelf.m: Tweak for -Asserts in r188651.NAKAMURA Takumi2013-08-191-1/+1
| | | | llvm-svn: 188661
* DebugInfo: Do not include line/file info for artificial parameters & ↵David Blaikie2013-08-193-9/+7
| | | | | | parameters of artificial functions llvm-svn: 188651
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-1538-153/+153
| | | | | | tests fail. llvm-svn: 188447
* Fix FileCheck --check-prefix lines.Tim Northover2013-08-1216-23/+23
| | | | | | | | | | Various tests had sprung up over the years which had --check-prefix=ABC on the RUN line, but "CHECK-ABC:" later on. This happened to work before, but was strictly incorrect. FileCheck is getting stricter soon though. Patch by Ron Ofir. llvm-svn: 188174
* Fix test for Release builds.Eli Friedman2013-07-261-2/+2
| | | | | | Attempt 2. Sorry about the noise. llvm-svn: 187183
* Fix test for Release builds.Eli Friedman2013-07-261-2/+2
| | | | llvm-svn: 187178
* Fix GNU ObjC ABI for a message returning a struct.Eli Friedman2013-07-261-0/+29
| | | | | | | | | This allows the ObjFW runtime to correctly implement message forwarding for messages which return a struct. Patch by Jonathan Schleifer. llvm-svn: 187174
* Debug Info: Fix an oversight of r186553. Ensure that the function prologueAdrian Prantl2013-07-241-0/+3
| | | | | | of an artificial function gets an artificial location as well. llvm-svn: 187074
* add radar number to testcase.Adrian Prantl2013-07-241-0/+1
| | | | llvm-svn: 187073
* Further simplify test case from r186894David Blaikie2013-07-231-15/+5
| | | | llvm-svn: 186905
OpenPOWER on IntegriCloud