Lines Matching defs:EHStack

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