[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:
Anastasia Stulova 2019-06-05 17:29:00 +00:00
parent 77d6adc491
commit d97ea1bc1a
1 changed files with 5 additions and 3 deletions

View File

@ -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(";