Lines Matching refs:Scope

309     LexicalScope *Scope, SmallVectorImpl<DIE *> &FinalChildren) {
310 if (!Scope || !Scope->getScopeNode())
313 auto *DS = Scope->getScopeNode();
315 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) &&
326 if (Scope->getParent() && isa<DISubprogram>(DS)) {
327 ScopeDIE = constructInlinedScopeDIE(Scope);
331 createScopeChildrenDIE(Scope, Children);
334 if (DD->isLexicalScopeDIENull(Scope))
341 createScopeChildrenDIE(Scope, Children, &ChildScopeCount);
359 ScopeDIE = constructLexicalScopeDIE(Scope);
360 assert(ScopeDIE && "Scope DIE should not be null.");
424 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope) {
425 assert(Scope->getScopeNode());
426 auto *DS = Scope->getScopeNode();
436 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges());
439 const DILocation *IA = Scope->getInlinedAt();
456 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) {
457 if (DD->isLexicalScopeDIENull(Scope))
461 if (Scope->isAbstractScope())
464 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges());
539 const LexicalScope &Scope,
541 auto Var = constructVariableDIE(DV, Scope.isAbstractScope());
547 DIE *DwarfCompileUnit::createScopeChildrenDIE(LexicalScope *Scope,
552 for (DbgVariable *DV : DU->getScopeVariables().lookup(Scope))
553 Children.push_back(constructVariableDIE(*DV, *Scope, ObjectPointer));
557 for (LexicalScope *LS : Scope->getChildren())
566 void DwarfCompileUnit::constructSubprogramScopeDIE(LexicalScope *Scope) {
567 assert(Scope && Scope->getScopeNode());
568 assert(!Scope->getInlinedAt());
569 assert(!Scope->isAbstractScope());
570 auto *Sub = cast<DISubprogram>(Scope->getScopeNode());
582 if (DIE *ObjectPointer = createAndAddScopeChildren(Scope, ScopeDIE))
594 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope,
598 DIE *ObjectPointer = createScopeChildrenDIE(Scope, Children);
608 LexicalScope *Scope) {
609 DIE *&AbsDef = DU->getAbstractSPDies()[Scope->getScopeNode()];
613 auto *SP = cast<DISubprogram>(Scope->getScopeNode());
636 if (DIE *ObjectPointer = createAndAddScopeChildren(Scope, *AbsDef))