Lines Matching refs:ED

2614 void CGDebugInfo::completeType(const EnumDecl *ED) {  in completeType()  argument
2617 QualType Ty = CGM.getContext().getEnumType(ED); in completeType()
3465 const EnumDecl *ED = Ty->getDecl(); in CreateEnumType() local
3469 if (!ED->getTypeForDecl()->isIncompleteType()) { in CreateEnumType()
3470 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl()); in CreateEnumType()
3471 Align = getDeclAlignIfRequired(ED, CGM.getContext()); in CreateEnumType()
3477 DebugTypeExtRefs && ED->isFromASTFile() && ED->getDefinition(); in CreateEnumType()
3481 if (isImportedFromModule || !ED->getDefinition()) { in CreateEnumType()
3488 llvm::DIScope *EDContext = getDeclContextDescriptor(ED); in CreateEnumType()
3489 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation()); in CreateEnumType()
3493 unsigned Line = getLineNumber(ED->getLocation()); in CreateEnumType()
3494 StringRef EDName = ED->getName(); in CreateEnumType()
3509 const EnumDecl *ED = Ty->getDecl(); in CreateTypeDefinition() local
3512 if (!ED->getTypeForDecl()->isIncompleteType()) { in CreateTypeDefinition()
3513 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl()); in CreateTypeDefinition()
3514 Align = getDeclAlignIfRequired(ED, CGM.getContext()); in CreateTypeDefinition()
3520 ED = ED->getDefinition(); in CreateTypeDefinition()
3521 for (const auto *Enum : ED->enumerators()) { in CreateTypeDefinition()
3529 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation()); in CreateTypeDefinition()
3530 unsigned Line = getLineNumber(ED->getLocation()); in CreateTypeDefinition()
3531 llvm::DIScope *EnumContext = getDeclContextDescriptor(ED); in CreateTypeDefinition()
3532 llvm::DIType *ClassTy = getOrCreateType(ED->getIntegerType(), DefUnit); in CreateTypeDefinition()
3534 EnumContext, ED->getName(), DefUnit, Line, Size, Align, EltArray, ClassTy, in CreateTypeDefinition()
3535 /*RunTimeLang=*/0, Identifier, ED->isScoped()); in CreateTypeDefinition()
5453 if (const auto *ED = dyn_cast<EnumDecl>(ET->getDecl())) { in TraverseEnumType() local
5454 if (!ED->getIdentifier()) { in TraverseEnumType()
5458 if (!ED->isExternallyVisible()) { in TraverseEnumType()
5700 const auto *ED = cast<EnumDecl>(ECD->getDeclContext()); in EmitGlobalVariable() local
5701 assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?"); in EmitGlobalVariable()
5708 if (isa<RecordDecl>(ED->getDeclContext())) in EmitGlobalVariable()
5715 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()