Lines Matching refs:ED
2366 void CGDebugInfo::completeType(const EnumDecl *ED) { in completeType() argument
2369 QualType Ty = CGM.getContext().getEnumType(ED); in completeType()
3177 const EnumDecl *ED = Ty->getDecl(); in CreateEnumType() local
3181 if (!ED->getTypeForDecl()->isIncompleteType()) { in CreateEnumType()
3182 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl()); in CreateEnumType()
3183 Align = getDeclAlignIfRequired(ED, CGM.getContext()); in CreateEnumType()
3189 DebugTypeExtRefs && ED->isFromASTFile() && ED->getDefinition(); in CreateEnumType()
3193 if (isImportedFromModule || !ED->getDefinition()) { in CreateEnumType()
3200 llvm::DIScope *EDContext = getDeclContextDescriptor(ED); in CreateEnumType()
3201 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation()); in CreateEnumType()
3205 unsigned Line = getLineNumber(ED->getLocation()); in CreateEnumType()
3206 StringRef EDName = ED->getName(); in CreateEnumType()
3221 const EnumDecl *ED = Ty->getDecl(); in CreateTypeDefinition() local
3224 if (!ED->getTypeForDecl()->isIncompleteType()) { in CreateTypeDefinition()
3225 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl()); in CreateTypeDefinition()
3226 Align = getDeclAlignIfRequired(ED, CGM.getContext()); in CreateTypeDefinition()
3232 ED = ED->getDefinition(); in CreateTypeDefinition()
3233 for (const auto *Enum : ED->enumerators()) { in CreateTypeDefinition()
3241 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation()); in CreateTypeDefinition()
3242 unsigned Line = getLineNumber(ED->getLocation()); in CreateTypeDefinition()
3243 llvm::DIScope *EnumContext = getDeclContextDescriptor(ED); in CreateTypeDefinition()
3244 llvm::DIType *ClassTy = getOrCreateType(ED->getIntegerType(), DefUnit); in CreateTypeDefinition()
3245 return DBuilder.createEnumerationType(EnumContext, ED->getName(), DefUnit, in CreateTypeDefinition()
3247 Identifier, ED->isScoped()); in CreateTypeDefinition()
5095 if (const auto *ED = dyn_cast<EnumDecl>(ET->getDecl())) { in TraverseEnumType() local
5096 if (!ED->getIdentifier()) { in TraverseEnumType()
5100 if (!ED->isExternallyVisible()) { in TraverseEnumType()
5335 const auto *ED = cast<EnumDecl>(ECD->getDeclContext()); in EmitGlobalVariable() local
5336 assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?"); in EmitGlobalVariable()
5343 if (isa<RecordDecl>(ED->getDeclContext())) in EmitGlobalVariable()
5350 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()