Lines Matching refs:Scope

506     LexicalScope *Scope, SmallVectorImpl<DIE *> &FinalChildren) {  in constructScopeDIE()  argument
507 if (!Scope || !Scope->getScopeNode()) in constructScopeDIE()
510 auto *DS = Scope->getScopeNode(); in constructScopeDIE()
512 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) && in constructScopeDIE()
523 if (Scope->getParent() && isa<DISubprogram>(DS)) { in constructScopeDIE()
524 ScopeDIE = constructInlinedScopeDIE(Scope); in constructScopeDIE()
528 createScopeChildrenDIE(Scope, Children); in constructScopeDIE()
531 if (DD->isLexicalScopeDIENull(Scope)) in constructScopeDIE()
538 createScopeChildrenDIE(Scope, Children, &HasNonScopeChildren); in constructScopeDIE()
548 ScopeDIE = constructLexicalScopeDIE(Scope); in constructScopeDIE()
643 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope) { in constructInlinedScopeDIE() argument
644 assert(Scope->getScopeNode()); in constructInlinedScopeDIE()
645 auto *DS = Scope->getScopeNode(); in constructInlinedScopeDIE()
655 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); in constructInlinedScopeDIE()
658 const DILocation *IA = Scope->getInlinedAt(); in constructInlinedScopeDIE()
677 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE() argument
678 if (DD->isLexicalScopeDIENull(Scope)) in constructLexicalScopeDIE()
682 if (Scope->isAbstractScope()) in constructLexicalScopeDIE()
685 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); in constructLexicalScopeDIE()
698 const LexicalScope &Scope) { in constructLabelDIE() argument
703 if (Scope.isAbstractScope()) in constructLabelDIE()
895 const LexicalScope &Scope, in constructVariableDIE() argument
897 auto Var = constructVariableDIE(DV, Scope.isAbstractScope()); in constructVariableDIE()
1006 DIE *DwarfCompileUnit::createScopeChildrenDIE(LexicalScope *Scope, in createScopeChildrenDIE() argument
1013 auto Vars = DU->getScopeVariables().lookup(Scope); in createScopeChildrenDIE()
1015 Children.push_back(constructVariableDIE(*DV.second, *Scope, ObjectPointer)); in createScopeChildrenDIE()
1020 Children.push_back(constructVariableDIE(*DV, *Scope, ObjectPointer)); in createScopeChildrenDIE()
1025 for (const auto *IE : ImportedEntities[Scope->getScopeNode()]) in createScopeChildrenDIE()
1033 for (DbgLabel *DL : DU->getScopeLabels().lookup(Scope)) in createScopeChildrenDIE()
1034 Children.push_back(constructLabelDIE(*DL, *Scope)); in createScopeChildrenDIE()
1036 for (LexicalScope *LS : Scope->getChildren()) in createScopeChildrenDIE()
1043 LexicalScope *Scope) { in constructSubprogramScopeDIE() argument
1046 if (Scope) { in constructSubprogramScopeDIE()
1047 assert(!Scope->getInlinedAt()); in constructSubprogramScopeDIE()
1048 assert(!Scope->isAbstractScope()); in constructSubprogramScopeDIE()
1052 if (DIE *ObjectPointer = createAndAddScopeChildren(Scope, ScopeDIE)) in constructSubprogramScopeDIE()
1070 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren() argument
1074 DIE *ObjectPointer = createScopeChildrenDIE(Scope, Children); in createAndAddScopeChildren()
1084 LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE() argument
1085 DIE *&AbsDef = getAbstractSPDies()[Scope->getScopeNode()]; in constructAbstractSubprogramScopeDIE()
1089 auto *SP = cast<DISubprogram>(Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
1118 if (DIE *ObjectPointer = ContextCU->createAndAddScopeChildren(Scope, *AbsDef)) in constructAbstractSubprogramScopeDIE()
1328 LexicalScope *Scope) { in createAbstractEntity() argument
1329 assert(Scope && Scope->isAbstractScope()); in createAbstractEntity()
1334 DU->addScopeVariable(Scope, cast<DbgVariable>(Entity.get())); in createAbstractEntity()
1338 DU->addScopeLabel(Scope, cast<DbgLabel>(Entity.get())); in createAbstractEntity()