• Home
  • Raw
  • Download

Lines Matching refs:EHStack

265   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());  in initFullExprCleanup()
283 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
285 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
310 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
337 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
339 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
345 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
347 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
370 EHStack.popNullFixups(); in ResolveBranchFixups()
377 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
378 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks()
409 EHStack.pushCopyOfCleanup(Header.getKind(), in PopCleanupBlocks()
472 if (flags.isForEHCleanup()) CGF.EHStack.pushTerminate(); in EmitCleanup()
495 if (flags.isForEHCleanup()) CGF.EHStack.popTerminate(); in EmitCleanup()
563 assert(!EHStack.empty() && "cleanup stack is empty!"); in PopCleanupBlock()
564 assert(isa<EHCleanupScope>(*EHStack.begin()) && "top not a cleanup!"); in PopCleanupBlock()
565 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlock()
566 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups()); in PopCleanupBlock()
586 bool HasFixups = EHStack.getNumBranchFixups() != FixupDepth; in PopCleanupBlock()
625 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
647 EHStack.popCleanup(); // safe because there are no fixups in PopCleanupBlock()
648 assert(EHStack.getNumBranchFixups() == 0 || in PopCleanupBlock()
649 EHStack.hasNormalCleanups()); in PopCleanupBlock()
672 EHStack.popCleanup(); in PopCleanupBlock()
680 EHStack.popCleanup(); in PopCleanupBlock()
716 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end()); in PopCleanupBlock()
728 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
791 EHStack.popCleanup(); in PopCleanupBlock()
792 assert(EHStack.hasNormalCleanups() == HasEnclosingCleanups); in PopCleanupBlock()
802 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
804 BranchFixup &Fixup = EHStack.getBranchFixup(I); in PopCleanupBlock()
853 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
855 EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; in PopCleanupBlock()
859 assert(EHStack.hasNormalCleanups() || EHStack.getNumBranchFixups() == 0); in PopCleanupBlock()
892 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in isObviouslyBranchWithoutCleanups()
897 EHStack.getInnermostActiveNormalCleanup(); in isObviouslyBranchWithoutCleanups()
902 if (TopCleanup == EHStack.stable_end() || in isObviouslyBranchWithoutCleanups()
917 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in EmitBranchThroughCleanup()
928 TopCleanup = EHStack.getInnermostActiveNormalCleanup(); in EmitBranchThroughCleanup()
933 if (TopCleanup == EHStack.stable_end() || in EmitBranchThroughCleanup()
942 BranchFixup &Fixup = EHStack.addBranchFixup(); in EmitBranchThroughCleanup()
961 cast<EHCleanupScope>(*EHStack.find(TopCleanup)); in EmitBranchThroughCleanup()
970 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I)); in EmitBranchThroughCleanup()
992 static bool IsUsedAsNormalCleanup(EHScopeStack &EHStack, in IsUsedAsNormalCleanup() argument
995 if (cast<EHCleanupScope>(*EHStack.find(C)).getNormalBlock()) in IsUsedAsNormalCleanup()
1000 I = EHStack.getInnermostNormalCleanup(); in IsUsedAsNormalCleanup()
1003 EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I)); in IsUsedAsNormalCleanup()
1011 static bool IsUsedAsEHCleanup(EHScopeStack &EHStack, in IsUsedAsEHCleanup() argument
1014 if (EHStack.find(cleanup)->hasEHBranches()) in IsUsedAsEHCleanup()
1019 i = EHStack.getInnermostEHScope(); i != cleanup; ) { in IsUsedAsEHCleanup()
1022 EHScope &scope = *EHStack.find(i); in IsUsedAsEHCleanup()
1046 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C)); in SetupCleanupBlockActivation()
1060 (isActivatedInConditional || IsUsedAsNormalCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1067 (isActivatedInConditional || IsUsedAsEHCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1101 assert(C != EHStack.stable_end() && "activating bottom of stack?"); in ActivateCleanupBlock()
1102 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in ActivateCleanupBlock()
1113 assert(C != EHStack.stable_end() && "deactivating bottom of stack?"); in DeactivateCleanupBlock()
1114 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in DeactivateCleanupBlock()
1118 if (C == EHStack.stable_begin()) { in DeactivateCleanupBlock()