]> granicus.if.org Git - clang/commit
When printing types for the OpenCL kernel metadata, use the PrintingPolicy.
authorJoey Gouly <joey.gouly@gmail.com>
Fri, 4 Apr 2014 13:43:57 +0000 (13:43 +0000)
committerJoey Gouly <joey.gouly@gmail.com>
Fri, 4 Apr 2014 13:43:57 +0000 (13:43 +0000)
commitc426836180304420f356caaba15b6128d88b7fb9
tree84b70082a245d85772ffcea4d85b505657dc59f8
parentef95faf680799e3eb69eeddf7630a0cb4a0237f9
When printing types for the OpenCL kernel metadata, use the PrintingPolicy.

This allows 'half' to be printed as 'half' and not as '__fp16'.

Patch by Fraser Cormack!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenOpenCL/kernel-arg-info.cl