Lines Matching refs:Scope

364     LexicalScope *Scope, SmallVectorImpl<DIE *> &FinalChildren) {  in constructScopeDIE()  argument
365 if (!Scope || !Scope->getScopeNode()) in constructScopeDIE()
368 auto *DS = Scope->getScopeNode(); in constructScopeDIE()
370 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) && in constructScopeDIE()
381 if (Scope->getParent() && isa<DISubprogram>(DS)) { in constructScopeDIE()
382 ScopeDIE = constructInlinedScopeDIE(Scope); in constructScopeDIE()
386 createScopeChildrenDIE(Scope, Children); in constructScopeDIE()
389 if (DD->isLexicalScopeDIENull(Scope)) in constructScopeDIE()
396 createScopeChildrenDIE(Scope, Children, &HasNonScopeChildren); in constructScopeDIE()
406 ScopeDIE = constructLexicalScopeDIE(Scope); in constructScopeDIE()
475 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope) { in constructInlinedScopeDIE() argument
476 assert(Scope->getScopeNode()); in constructInlinedScopeDIE()
477 auto *DS = Scope->getScopeNode(); in constructInlinedScopeDIE()
487 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); in constructInlinedScopeDIE()
490 const DILocation *IA = Scope->getInlinedAt(); in constructInlinedScopeDIE()
507 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE() argument
508 if (DD->isLexicalScopeDIENull(Scope)) in constructLexicalScopeDIE()
512 if (Scope->isAbstractScope()) in constructLexicalScopeDIE()
515 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); in constructLexicalScopeDIE()
528 const LexicalScope &Scope) { in constructLabelDIE() argument
533 if (Scope.isAbstractScope()) in constructLabelDIE()
622 const LexicalScope &Scope, in constructVariableDIE() argument
624 auto Var = constructVariableDIE(DV, Scope.isAbstractScope()); in constructVariableDIE()
705 DIE *DwarfCompileUnit::createScopeChildrenDIE(LexicalScope *Scope, in createScopeChildrenDIE() argument
712 auto Vars = DU->getScopeVariables().lookup(Scope); in createScopeChildrenDIE()
714 Children.push_back(constructVariableDIE(*DV.second, *Scope, ObjectPointer)); in createScopeChildrenDIE()
719 Children.push_back(constructVariableDIE(*DV, *Scope, ObjectPointer)); in createScopeChildrenDIE()
724 for (const auto *IE : ImportedEntities[Scope->getScopeNode()]) in createScopeChildrenDIE()
732 for (DbgLabel *DL : DU->getScopeLabels().lookup(Scope)) in createScopeChildrenDIE()
733 Children.push_back(constructLabelDIE(*DL, *Scope)); in createScopeChildrenDIE()
735 for (LexicalScope *LS : Scope->getChildren()) in createScopeChildrenDIE()
742 LexicalScope *Scope) { in constructSubprogramScopeDIE() argument
745 if (Scope) { in constructSubprogramScopeDIE()
746 assert(!Scope->getInlinedAt()); in constructSubprogramScopeDIE()
747 assert(!Scope->isAbstractScope()); in constructSubprogramScopeDIE()
751 if (DIE *ObjectPointer = createAndAddScopeChildren(Scope, ScopeDIE)) in constructSubprogramScopeDIE()
769 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren() argument
773 DIE *ObjectPointer = createScopeChildrenDIE(Scope, Children); in createAndAddScopeChildren()
783 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE() argument
784 DIE *&AbsDef = getAbstractSPDies()[Scope->getScopeNode()]; in constructAbstractSubprogramScopeDIE()
788 auto *SP = cast<DISubprogram>(Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
817 if (DIE *ObjectPointer = ContextCU->createAndAddScopeChildren(Scope, *AbsDef)) in constructAbstractSubprogramScopeDIE()
922 LexicalScope *Scope) { in createAbstractEntity() argument
923 assert(Scope && Scope->isAbstractScope()); in createAbstractEntity()
928 DU->addScopeVariable(Scope, cast<DbgVariable>(Entity.get())); in createAbstractEntity()
932 DU->addScopeLabel(Scope, cast<DbgLabel>(Entity.get())); in createAbstractEntity()