]> granicus.if.org Git - clang/commit
CodeGen: Emit string literal in constant address space
authorYaxun Liu <Yaxun.Liu@amd.com>
Mon, 14 May 2018 19:20:12 +0000 (19:20 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Mon, 14 May 2018 19:20:12 +0000 (19:20 +0000)
commit20ceb1b4d949a51ce2ea754880bd781746903c15
tree31f14458aeeea213ec60ef189775bb5d3c1b6da8
parentb8a4da9becf7fb8eb153b992455983d28bc11ffd
CodeGen: Emit string literal in constant address space

Some targets have constant address space (e.g. amdgcn). For them string literal should be
emitted in constant address space then casted to default address space.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332279 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/amdgcn-string-literal.cpp [new file with mode: 0644]