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)
commitdc9bf8fab6365af788976edddfc8221eceecaccb
treea1f6c8d9ceb7c895f5df00ba3850847c050545fa
parent844ab6a0126a6379712e1db5c3c3a93653022f99
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

llvm-svn: 287085
clang/lib/AST/Expr.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/block-with-perdefinedexpr.cpp [new file with mode: 0644]
clang/test/CodeGen/func-in-block.c
clang/test/CodeGen/mangle-blocks.c
clang/test/CodeGenCXX/predefined-expr-cxx14.cpp
clang/test/CodeGenObjC/mangle-blocks.m
clang/test/SemaCXX/predefined-expr.cpp