================
@@ -1141,6 +1141,15 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType 
*BT) {
     return SingletonId;                                                        
\
   }
 #include "clang/Basic/AMDGPUTypes.def"
+#define SPIRV_TYPE(Name, Id, SingletonId)                                      
\
+  case BuiltinType::Id: {                                                      
\
+    if (!SingletonId)                                                          
\
+      SingletonId =                                                            
\
+          DBuilder.createForwardDecl(llvm::dwarf::DW_TAG_structure_type, Name, 
\
+                                     TheCU, TheCU->getFile(), 0);              
\
+    return SingletonId;                                                        
\
+  }
+#include "clang/Basic/SPIRVTypes.def"
----------------
tahonermann wrote:

Perhaps this can call `getOrCreateStructPtrType()` as is done for 
`EXT_OPAQUE_TYPE`? That would build a pointer to the opaque structure instead 
of just the opaque structure type.

https://github.com/llvm/llvm-project/pull/207077
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to