diff options
| author | Guy Benyei <guy.benyei@intel.com> | 2013-02-07 10:55:47 +0000 |
|---|---|---|
| committer | Guy Benyei <guy.benyei@intel.com> | 2013-02-07 10:55:47 +0000 |
| commit | 610541989a524be452a5674cd3fb78304ce3fa8a (patch) | |
| tree | 531d41128c330184f827fe19a030d2f8387f35dd /clang/lib/CodeGen/CGDebugInfo.cpp | |
| parent | 4ea6816247a211e731b7929ca08d682c781e3348 (diff) | |
| download | bcm5719-llvm-610541989a524be452a5674cd3fb78304ce3fa8a.tar.gz bcm5719-llvm-610541989a524be452a5674cd3fb78304ce3fa8a.zip | |
Add OpenCL samplers as Clang builtin types and check sampler related restrictions.
llvm-svn: 174601
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 5e60bd8f66c..a4153d3712e 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -426,6 +426,11 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { case BuiltinType::OCLImage3d: return getOrCreateStructPtrType("opencl_image3d_t", OCLImage3dDITy); + case BuiltinType::OCLSampler: + return DBuilder.createBasicType("opencl_sampler_t", + CGM.getContext().getTypeSize(BT), + CGM.getContext().getTypeAlign(BT), + llvm::dwarf::DW_ATE_unsigned); case BuiltinType::OCLEvent: return getOrCreateStructPtrType("opencl_event_t", OCLEventDITy); |

