Lines Matching defs:ED

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