Lines Matching refs:ED
2258 void CGDebugInfo::completeType(const EnumDecl *ED) {
2261 QualType Ty = CGM.getContext().getEnumType(ED);
3047 const EnumDecl *ED = Ty->getDecl();
3051 if (!ED->getTypeForDecl()->isIncompleteType()) {
3052 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
3053 Align = getDeclAlignIfRequired(ED, CGM.getContext());
3059 DebugTypeExtRefs && ED->isFromASTFile() && ED->getDefinition();
3063 if (isImportedFromModule || !ED->getDefinition()) {
3070 llvm::DIScope *EDContext = getDeclContextDescriptor(ED);
3071 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation());
3075 unsigned Line = getLineNumber(ED->getLocation());
3076 StringRef EDName = ED->getName();
3091 const EnumDecl *ED = Ty->getDecl();
3094 if (!ED->getTypeForDecl()->isIncompleteType()) {
3095 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
3096 Align = getDeclAlignIfRequired(ED, CGM.getContext());
3103 ED = ED->getDefinition();
3104 bool IsSigned = ED->getIntegerType()->isSignedIntegerType();
3105 for (const auto *Enum : ED->enumerators()) {
3115 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation());
3116 unsigned Line = getLineNumber(ED->getLocation());
3117 llvm::DIScope *EnumContext = getDeclContextDescriptor(ED);
3118 llvm::DIType *ClassTy = getOrCreateType(ED->getIntegerType(), DefUnit);
3119 return DBuilder.createEnumerationType(EnumContext, ED->getName(), DefUnit,
3121 Identifier, ED->isScoped());
4854 const auto *ED = cast<EnumDecl>(ECD->getDeclContext());
4855 assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?");
4862 if (isa<RecordDecl>(ED->getDeclContext()))
4869 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit);