Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:ED

1475 void CGDebugInfo::completeType(const EnumDecl *ED) {
1478 QualType Ty = CGM.getContext().getEnumType(ED);
2029 const EnumDecl *ED = Ty->getDecl();
2033 if (!ED->getTypeForDecl()->isIncompleteType()) {
2034 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
2035 Align = CGM.getContext().getTypeAlign(ED->getTypeForDecl());
2041 DebugTypeExtRefs && ED->isFromASTFile() && ED->getDefinition();
2045 if (isImportedFromModule || !ED->getDefinition()) {
2046 llvm::DIScope *EDContext = getDeclContextDescriptor(ED);
2047 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation());
2048 unsigned Line = getLineNumber(ED->getLocation());
2049 StringRef EDName = ED->getName();
2063 const EnumDecl *ED = Ty->getDecl();
2066 if (!ED->getTypeForDecl()->isIncompleteType()) {
2067 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
2068 Align = CGM.getContext().getTypeAlign(ED->getTypeForDecl());
2075 ED = ED->getDefinition();
2076 for (const auto *Enum : ED->enumerators()) {
2084 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation());
2085 unsigned Line = getLineNumber(ED->getLocation());
2086 llvm::DIScope *EnumContext = getDeclContextDescriptor(ED);
2088 ED->isFixed() ? getOrCreateType(ED->getIntegerType(), DefUnit) : nullptr;
2089 return DBuilder.createEnumerationType(EnumContext, ED->getName(), DefUnit,
3377 const EnumDecl *ED = cast<EnumDecl>(ECD->getDeclContext());
3378 assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?");
3379 Ty = getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit);