summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/func-in-block.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve handling of __FUNCTION__ and other predefined expression for ↵Mehdi Amini2016-11-161-2/+2
| | | | | | | | | | | | | | Objective-C Blocks Instead of always displaying the mangled name, try to do better and get something closer to regular functions. Recommit r287039 (that was reverted in r287039) with a tweak to be more generic, and test fixes! Differential Revision: https://reviews.llvm.org/D26522 llvm-svn: 287085
* block literal irgen: several improvements on naming blockFariborz Jahanian2012-06-261-2/+2
| | | | | | | | | | | | literal helper functions. All helper functions (global and locals) use block_invoke as their prefix. Local literal helper names are prefixed by their enclosing mangled function names. Blocks in non-local initializers (e.g. a global variable or a C++11 field) are prefixed by their mangled variable name. The descriminator number added to end of the name starts off with blank (for first block) and _<N> (for the N+2-th block). llvm-svn: 159206
* Add unnamed_addr when creating artificial string globals. For example, inRafael Espindola2011-01-101-1/+1
| | | | | | | | | static const char foo[] = "foo"; static const char *bar = "bar"; the global created to hold "bar" will have it, but foo will not. llvm-svn: 123192
* Make use of __func__ in a block actually refer toFariborz Jahanian2010-08-131-0/+1
| | | | | | block's helper function. Fixes radar 7860965. llvm-svn: 110988
* Have __func__ and siblings point to block's implementation functionFariborz Jahanian2010-06-281-0/+18
name. Fixes radar 7860965. llvm-svn: 107044
OpenPOWER on IntegriCloud