Lines Matching refs:Entity
852 auto *Entity = resolve(Module->getEntity()); in constructImportedEntityDIE() local
853 if (auto *NS = dyn_cast<DINamespace>(Entity)) in constructImportedEntityDIE()
855 else if (auto *M = dyn_cast<DIModule>(Entity)) in constructImportedEntityDIE()
857 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) in constructImportedEntityDIE()
859 else if (auto *T = dyn_cast<DIType>(Entity)) in constructImportedEntityDIE()
861 else if (auto *GV = dyn_cast<DIGlobalVariable>(Entity)) in constructImportedEntityDIE()
864 EntityDie = getDIE(Entity); in constructImportedEntityDIE()
889 void DwarfCompileUnit::finishEntityDefinition(const DbgEntity *Entity) { in finishEntityDefinition() argument
890 DbgEntity *AbsEntity = getExistingAbstractEntity(Entity->getEntity()); in finishEntityDefinition()
892 auto *Die = Entity->getDIE(); in finishEntityDefinition()
898 Label = dyn_cast<const DbgLabel>(Entity); in finishEntityDefinition()
900 if (const DbgVariable *Var = dyn_cast<const DbgVariable>(Entity)) in finishEntityDefinition()
902 else if ((Label = dyn_cast<const DbgLabel>(Entity))) in finishEntityDefinition()
924 auto &Entity = getAbstractEntities()[Node]; in createAbstractEntity() local
926 Entity = llvm::make_unique<DbgVariable>( in createAbstractEntity()
928 DU->addScopeVariable(Scope, cast<DbgVariable>(Entity.get())); in createAbstractEntity()
930 Entity = llvm::make_unique<DbgLabel>( in createAbstractEntity()
932 DU->addScopeLabel(Scope, cast<DbgLabel>(Entity.get())); in createAbstractEntity()