forked from OSchip/llvm-project
[Clang] Fix pretty printing of CUDA address spaces
Patch by richardmembarth (Richard Membarth)! Differential Revision: https://reviews.llvm.org/D54258 llvm-svn: 362623
This commit is contained in:
parent
77d6adc491
commit
d97ea1bc1a
|
@ -1805,17 +1805,19 @@ void Qualifiers::print(raw_ostream &OS, const PrintingPolicy& Policy,
|
|||
case LangAS::opencl_private:
|
||||
break;
|
||||
case LangAS::opencl_constant:
|
||||
case LangAS::cuda_constant:
|
||||
OS << "__constant";
|
||||
break;
|
||||
case LangAS::opencl_generic:
|
||||
OS << "__generic";
|
||||
break;
|
||||
case LangAS::cuda_device:
|
||||
OS << "__device";
|
||||
OS << "__device__";
|
||||
break;
|
||||
case LangAS::cuda_constant:
|
||||
OS << "__constant__";
|
||||
break;
|
||||
case LangAS::cuda_shared:
|
||||
OS << "__shared";
|
||||
OS << "__shared__";
|
||||
break;
|
||||
default:
|
||||
OS << "__attribute__((address_space(";
|
||||
|
|
Loading…
Reference in New Issue