Lines Matching refs:EHStack

285   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());  in initFullExprCleanupWithFlag()
318 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
320 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
346 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
373 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
375 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
381 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
383 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
406 EHStack.popNullFixups(); in ResolveBranchFixups()
416 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
417 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks()
483 EHStack.pushCopyOfCleanup(Header.getKind(), in PopCleanupBlocks()
639 assert(!EHStack.empty() && "cleanup stack is empty!"); in PopCleanupBlock()
640 assert(isa<EHCleanupScope>(*EHStack.begin()) && "top not a cleanup!"); in PopCleanupBlock()
641 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlock()
642 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups()); in PopCleanupBlock()
670 bool HasFixups = EHStack.getNumBranchFixups() != FixupDepth; in PopCleanupBlock()
714 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
736 EHStack.popCleanup(); // safe because there are no fixups in PopCleanupBlock()
737 assert(EHStack.getNumBranchFixups() == 0 || in PopCleanupBlock()
738 EHStack.hasNormalCleanups()); in PopCleanupBlock()
790 EHStack.popCleanup(); in PopCleanupBlock()
807 EHStack.popCleanup(); in PopCleanupBlock()
851 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end()); in PopCleanupBlock()
863 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
943 EHStack.popCleanup(); in PopCleanupBlock()
944 assert(EHStack.hasNormalCleanups() == HasEnclosingCleanups); in PopCleanupBlock()
954 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
956 BranchFixup &Fixup = EHStack.getBranchFixup(I); in PopCleanupBlock()
1005 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
1007 EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; in PopCleanupBlock()
1013 assert(EHStack.hasNormalCleanups() || EHStack.getNumBranchFixups() == 0); in PopCleanupBlock()
1040 EHStack.pushTerminate(); in PopCleanupBlock()
1060 EHStack.popTerminate(); in PopCleanupBlock()
1072 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in isObviouslyBranchWithoutCleanups()
1077 EHStack.getInnermostActiveNormalCleanup(); in isObviouslyBranchWithoutCleanups()
1082 if (TopCleanup == EHStack.stable_end() || in isObviouslyBranchWithoutCleanups()
1097 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in EmitBranchThroughCleanup()
1108 TopCleanup = EHStack.getInnermostActiveNormalCleanup(); in EmitBranchThroughCleanup()
1113 if (TopCleanup == EHStack.stable_end() || in EmitBranchThroughCleanup()
1122 BranchFixup &Fixup = EHStack.addBranchFixup(); in EmitBranchThroughCleanup()
1141 cast<EHCleanupScope>(*EHStack.find(TopCleanup)); in EmitBranchThroughCleanup()
1150 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I)); in EmitBranchThroughCleanup()
1172 static bool IsUsedAsEHCleanup(EHScopeStack &EHStack, in IsUsedAsEHCleanup() argument
1175 if (EHStack.find(cleanup)->hasEHBranches()) in IsUsedAsEHCleanup()
1180 i = EHStack.getInnermostEHScope(); i != cleanup; ) { in IsUsedAsEHCleanup()
1183 EHScope &scope = *EHStack.find(i); in IsUsedAsEHCleanup()
1207 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C)); in SetupCleanupBlockActivation()
1227 (isActivatedInConditional || IsUsedAsEHCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1265 assert(C != EHStack.stable_end() && "activating bottom of stack?"); in ActivateCleanupBlock()
1266 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in ActivateCleanupBlock()
1277 assert(C != EHStack.stable_end() && "deactivating bottom of stack?"); in DeactivateCleanupBlock()
1278 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in DeactivateCleanupBlock()
1283 if (C == EHStack.stable_begin() && in DeactivateCleanupBlock()