]> granicus.if.org Git - clang/commit
[OpenCL] Add constant address space to __func__ in AST.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Wed, 9 May 2018 13:23:26 +0000 (13:23 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Wed, 9 May 2018 13:23:26 +0000 (13:23 +0000)
commit442dc06868eabebc595a167195064eaaa03e45a9
tree208e09f51a72be29c3d9bef57085b26b9ed95d7d
parent9741e8bd919adb88acf18d39dea02a8da9cb90bd
[OpenCL] Add constant address space to __func__ in AST.

Added string literal helper function to obtain the type
attributed by a constant address space.

Also fixed predefind __func__ expr to use the helper
to constract the string literal correctly.

Differential Revision: https://reviews.llvm.org/D46049

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331877 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/AST/Expr.cpp
lib/Sema/SemaExpr.cpp
test/CodeGenOpenCL/str_literals.cl
test/SemaOpenCL/predefined-expr.cl [new file with mode: 0644]