Skip to content

Commit 6c26251

Browse files
joaosaffran-zzjoaosaffran
authored andcommitted
first attempt
1 parent 999f15b commit 6c26251

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3492,6 +3492,11 @@ llvm::DIType *CGDebugInfo::CreateType(const PipeType *Ty, llvm::DIFile *U) {
34923492
return getOrCreateType(Ty->getElementType(), U);
34933493
}
34943494

3495+
llvm::DIType *CGDebugInfo::CreateType(const HLSLAttributedResourceType *Ty,
3496+
llvm::DIFile *U) {
3497+
return getOrCreateType(Ty->getWrappedType(), U);
3498+
}
3499+
34953500
llvm::DIType *CGDebugInfo::CreateEnumType(const EnumType *Ty) {
34963501
const EnumDecl *ED = Ty->getDecl();
34973502

@@ -3834,12 +3839,14 @@ llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) {
38343839

38353840
case Type::TemplateSpecialization:
38363841
return CreateType(cast<TemplateSpecializationType>(Ty), Unit);
3842+
case Type::HLSLAttributedResource: {
3843+
return CreateType(cast<HLSLAttributedResourceType>(Ty), Unit);
3844+
}
38373845

38383846
case Type::CountAttributed:
38393847
case Type::Auto:
38403848
case Type::Attributed:
38413849
case Type::BTFTagAttributed:
3842-
case Type::HLSLAttributedResource:
38433850
case Type::Adjusted:
38443851
case Type::Decayed:
38453852
case Type::DeducedTemplateSpecialization:

clang/lib/CodeGen/CGDebugInfo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ class CGDebugInfo {
196196
llvm::DIType *CreateType(const PointerType *Ty, llvm::DIFile *F);
197197
llvm::DIType *CreateType(const BlockPointerType *Ty, llvm::DIFile *F);
198198
llvm::DIType *CreateType(const FunctionType *Ty, llvm::DIFile *F);
199+
llvm::DIType *CreateType(const HLSLAttributedResourceType *Ty,
200+
llvm::DIFile *F);
199201
/// Get structure or union type.
200202
llvm::DIType *CreateType(const RecordType *Tyg);
201203

0 commit comments

Comments
 (0)