Lines Matching refs:EHStack

314   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());  in initFullExprCleanupWithFlag()
345 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
347 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
373 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
400 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
402 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
408 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
410 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
433 EHStack.popNullFixups(); in ResolveBranchFixups()
443 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
444 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks()
510 EHStack.pushCopyOfCleanup(Header.getKind(), in PopCleanupBlocks()
665 assert(!EHStack.empty() && "cleanup stack is empty!"); in PopCleanupBlock()
666 assert(isa<EHCleanupScope>(*EHStack.begin()) && "top not a cleanup!"); in PopCleanupBlock()
667 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlock()
668 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups()); in PopCleanupBlock()
690 bool HasFixups = EHStack.getNumBranchFixups() != FixupDepth; in PopCleanupBlock()
729 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
751 EHStack.popCleanup(); // safe because there are no fixups in PopCleanupBlock()
752 assert(EHStack.getNumBranchFixups() == 0 || in PopCleanupBlock()
753 EHStack.hasNormalCleanups()); in PopCleanupBlock()
795 EHStack.popCleanup(); in PopCleanupBlock()
811 EHStack.popCleanup(); in PopCleanupBlock()
855 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end()); in PopCleanupBlock()
867 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
947 EHStack.popCleanup(); in PopCleanupBlock()
948 assert(EHStack.hasNormalCleanups() == HasEnclosingCleanups); in PopCleanupBlock()
958 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
960 BranchFixup &Fixup = EHStack.getBranchFixup(I); in PopCleanupBlock()
1009 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
1011 EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; in PopCleanupBlock()
1015 assert(EHStack.hasNormalCleanups() || EHStack.getNumBranchFixups() == 0); in PopCleanupBlock()
1042 EHStack.pushTerminate(); in PopCleanupBlock()
1062 EHStack.popTerminate(); in PopCleanupBlock()
1074 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in isObviouslyBranchWithoutCleanups()
1079 EHStack.getInnermostActiveNormalCleanup(); in isObviouslyBranchWithoutCleanups()
1084 if (TopCleanup == EHStack.stable_end() || in isObviouslyBranchWithoutCleanups()
1099 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in EmitBranchThroughCleanup()
1110 TopCleanup = EHStack.getInnermostActiveNormalCleanup(); in EmitBranchThroughCleanup()
1115 if (TopCleanup == EHStack.stable_end() || in EmitBranchThroughCleanup()
1124 BranchFixup &Fixup = EHStack.addBranchFixup(); in EmitBranchThroughCleanup()
1143 cast<EHCleanupScope>(*EHStack.find(TopCleanup)); in EmitBranchThroughCleanup()
1152 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I)); in EmitBranchThroughCleanup()
1174 static bool IsUsedAsNormalCleanup(EHScopeStack &EHStack, in IsUsedAsNormalCleanup() argument
1177 if (cast<EHCleanupScope>(*EHStack.find(C)).getNormalBlock()) in IsUsedAsNormalCleanup()
1182 I = EHStack.getInnermostNormalCleanup(); in IsUsedAsNormalCleanup()
1185 EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I)); in IsUsedAsNormalCleanup()
1193 static bool IsUsedAsEHCleanup(EHScopeStack &EHStack, in IsUsedAsEHCleanup() argument
1196 if (EHStack.find(cleanup)->hasEHBranches()) in IsUsedAsEHCleanup()
1201 i = EHStack.getInnermostEHScope(); i != cleanup; ) { in IsUsedAsEHCleanup()
1204 EHScope &scope = *EHStack.find(i); in IsUsedAsEHCleanup()
1228 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C)); in SetupCleanupBlockActivation()
1242 (isActivatedInConditional || IsUsedAsNormalCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1249 (isActivatedInConditional || IsUsedAsEHCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1284 assert(C != EHStack.stable_end() && "activating bottom of stack?"); in ActivateCleanupBlock()
1285 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in ActivateCleanupBlock()
1296 assert(C != EHStack.stable_end() && "deactivating bottom of stack?"); in DeactivateCleanupBlock()
1297 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in DeactivateCleanupBlock()
1302 if (C == EHStack.stable_begin() && in DeactivateCleanupBlock()