Lines Matching refs:Scope
304 LexicalScope *Scope, SmallVectorImpl<DIE *> &FinalChildren) { in constructScopeDIE() argument
305 if (!Scope || !Scope->getScopeNode()) in constructScopeDIE()
308 auto *DS = Scope->getScopeNode(); in constructScopeDIE()
310 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) && in constructScopeDIE()
321 if (Scope->getParent() && isa<DISubprogram>(DS)) { in constructScopeDIE()
322 ScopeDIE = constructInlinedScopeDIE(Scope); in constructScopeDIE()
326 createScopeChildrenDIE(Scope, Children); in constructScopeDIE()
329 if (DD->isLexicalScopeDIENull(Scope)) in constructScopeDIE()
336 createScopeChildrenDIE(Scope, Children, &ChildScopeCount); in constructScopeDIE()
354 ScopeDIE = constructLexicalScopeDIE(Scope); in constructScopeDIE()
419 DIE *DwarfCompileUnit::constructInlinedScopeDIE(LexicalScope *Scope) { in constructInlinedScopeDIE() argument
420 assert(Scope->getScopeNode()); in constructInlinedScopeDIE()
421 auto *DS = Scope->getScopeNode(); in constructInlinedScopeDIE()
431 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); in constructInlinedScopeDIE()
434 const DILocation *IA = Scope->getInlinedAt(); in constructInlinedScopeDIE()
448 DIE *DwarfCompileUnit::constructLexicalScopeDIE(LexicalScope *Scope) { in constructLexicalScopeDIE() argument
449 if (DD->isLexicalScopeDIENull(Scope)) in constructLexicalScopeDIE()
453 if (Scope->isAbstractScope()) in constructLexicalScopeDIE()
456 attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); in constructLexicalScopeDIE()
532 const LexicalScope &Scope, in constructVariableDIE() argument
534 auto Var = constructVariableDIE(DV, Scope.isAbstractScope()); in constructVariableDIE()
540 DIE *DwarfCompileUnit::createScopeChildrenDIE(LexicalScope *Scope, in createScopeChildrenDIE() argument
545 for (DbgVariable *DV : DU->getScopeVariables().lookup(Scope)) in createScopeChildrenDIE()
546 Children.push_back(constructVariableDIE(*DV, *Scope, ObjectPointer)); in createScopeChildrenDIE()
550 for (LexicalScope *LS : Scope->getChildren()) in createScopeChildrenDIE()
559 void DwarfCompileUnit::constructSubprogramScopeDIE(LexicalScope *Scope) { in constructSubprogramScopeDIE() argument
560 assert(Scope && Scope->getScopeNode()); in constructSubprogramScopeDIE()
561 assert(!Scope->getInlinedAt()); in constructSubprogramScopeDIE()
562 assert(!Scope->isAbstractScope()); in constructSubprogramScopeDIE()
563 auto *Sub = cast<DISubprogram>(Scope->getScopeNode()); in constructSubprogramScopeDIE()
575 if (DIE *ObjectPointer = createAndAddScopeChildren(Scope, ScopeDIE)) in constructSubprogramScopeDIE()
587 DIE *DwarfCompileUnit::createAndAddScopeChildren(LexicalScope *Scope, in createAndAddScopeChildren() argument
591 DIE *ObjectPointer = createScopeChildrenDIE(Scope, Children); in createAndAddScopeChildren()
601 DwarfCompileUnit::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) { in constructAbstractSubprogramScopeDIE() argument
602 DIE *&AbsDef = DU->getAbstractSPDies()[Scope->getScopeNode()]; in constructAbstractSubprogramScopeDIE()
606 auto *SP = cast<DISubprogram>(Scope->getScopeNode()); in constructAbstractSubprogramScopeDIE()
629 if (DIE *ObjectPointer = createAndAddScopeChildren(Scope, *AbsDef)) in constructAbstractSubprogramScopeDIE()