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