"Number of longjmps transformed");
Statistic<> SetJmpsTransformed("lowersetjmp",
"Number of setjmps transformed");
+ Statistic<> CallsTransformed("lowersetjmp",
+ "Number of calls invokified");
+ Statistic<> InvokesTransformed("lowersetjmp",
+ "Number of invokes modified");
//===--------------------------------------------------------------------===//
// LowerSetJmp pass implementation. This is subclassed from the "Pass"
// The old terminator is useless now that we have the invoke inst.
Term->getParent()->getInstList().erase(Term);
+ ++CallsTransformed;
}
// visitInvokeInst - Converting the "invoke" instruction is fairly
InstList.push_back(BR);
II.setExceptionalDest(NewExceptBB);
+ ++InvokesTransformed;
}
// visitReturnInst - We want to destroy the setjmp map upon exit from the