AST: Introduce PackElementType

This commit is contained in:
Slava Pestov
2023-05-22 13:47:24 -04:00
parent 8f9a4cbdae
commit b2bc2c72ec
29 changed files with 274 additions and 4 deletions

View File

@@ -5068,6 +5068,14 @@ public:
S.addTypeRef(expansionTy->getCountType()));
}
void visitPackElementType(const PackElementType *elementType) {
using namespace decls_block;
unsigned abbrCode = S.DeclTypeAbbrCodes[PackElementTypeLayout::Code];
PackElementTypeLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
S.addTypeRef(elementType->getPackType()),
elementType->getLevel());
}
void visitPackType(const PackType *packTy) {
using namespace decls_block;
unsigned abbrCode = S.DeclTypeAbbrCodes[PackTypeLayout::Code];