[Lldb-commits] [PATCH] D13096: Handle new types in ClangASTContext::GetEncoding

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 11:13:07 PDT 2015


emaste retitled this revision from "Handle OMPArraySection in ClangASTContext::GetEncoding" to "Handle new types in ClangASTContext::GetEncoding".
emaste updated this revision to Diff 35532.
emaste added a comment.

More new types added after my initial patch.


http://reviews.llvm.org/D13096

Files:
  source/Symbol/ClangASTContext.cpp

Index: source/Symbol/ClangASTContext.cpp
===================================================================
--- source/Symbol/ClangASTContext.cpp
+++ source/Symbol/ClangASTContext.cpp
@@ -4444,7 +4444,6 @@
         case clang::Type::Builtin:
             switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind())
         {
-            default: assert(0 && "Unknown builtin type!");
             case clang::BuiltinType::Void:
                 break;
                 
@@ -4484,14 +4483,25 @@
             case clang::BuiltinType::Kind::BuiltinFn:
             case clang::BuiltinType::Kind::Dependent:
             case clang::BuiltinType::Kind::Half:
+            case clang::BuiltinType::Kind::OCLClkEvent:
             case clang::BuiltinType::Kind::OCLEvent:
             case clang::BuiltinType::Kind::OCLImage1d:
             case clang::BuiltinType::Kind::OCLImage1dArray:
             case clang::BuiltinType::Kind::OCLImage1dBuffer:
             case clang::BuiltinType::Kind::OCLImage2d:
             case clang::BuiltinType::Kind::OCLImage2dArray:
+            case clang::BuiltinType::Kind::OCLImage2dArrayDepth:
+            case clang::BuiltinType::Kind::OCLImage2dArrayMSAA:
+            case clang::BuiltinType::Kind::OCLImage2dArrayMSAADepth:
+            case clang::BuiltinType::Kind::OCLImage2dDepth:
+            case clang::BuiltinType::Kind::OCLImage2dMSAA:
+            case clang::BuiltinType::Kind::OCLImage2dMSAADepth:
             case clang::BuiltinType::Kind::OCLImage3d:
+            case clang::BuiltinType::Kind::OCLQueue:
+            case clang::BuiltinType::Kind::OCLNDRange:
+            case clang::BuiltinType::Kind::OCLReserveID:
             case clang::BuiltinType::Kind::OCLSampler:
+            case clang::BuiltinType::Kind::OMPArraySection:
             case clang::BuiltinType::Kind::Overload:
             case clang::BuiltinType::Kind::PseudoObject:
             case clang::BuiltinType::Kind::UnknownAny:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13096.35532.patch
Type: text/x-patch
Size: 1962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150923/147556ed/attachment.bin>


More information about the lldb-commits mailing list