]> granicus.if.org Git - clang/commit
Improve handling of __FUNCTION__ and other predefined expression for Objective-C...
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 16 Nov 2016 07:07:28 +0000 (07:07 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 16 Nov 2016 07:07:28 +0000 (07:07 +0000)
commit4a9b9bf7798814aa9e32c1e4df0c1ccb65d992e7
treec8bb57b8c442e626ec4e178734e58d2506d4d98f
parent25da1c1bcfdb925f8e93499ba12e64bf814ec36c
Improve handling of __FUNCTION__ and other predefined expression for 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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/CodeGen/CGExpr.cpp
test/CodeGen/block-with-perdefinedexpr.cpp [new file with mode: 0644]
test/CodeGen/func-in-block.c
test/CodeGen/mangle-blocks.c
test/CodeGenCXX/predefined-expr-cxx14.cpp
test/CodeGenObjC/mangle-blocks.m
test/SemaCXX/predefined-expr.cpp