Lines Matching refs:LongjmpF
360 void replaceLongjmpWith(Function *LongjmpF, Function *NewF);
817 void WebAssemblyLowerEmscriptenEHSjLj::replaceLongjmpWith(Function *LongjmpF, in replaceLongjmpWith() argument
820 Module *M = LongjmpF->getParent(); in replaceLongjmpWith()
822 LLVMContext &C = LongjmpF->getParent()->getContext(); in replaceLongjmpWith()
827 for (User *U : LongjmpF->users()) { in replaceLongjmpWith()
829 if (CI && CI->getCalledFunction() == LongjmpF) { in replaceLongjmpWith()
847 if (!LongjmpF->uses().empty()) { in replaceLongjmpWith()
849 IRB.CreateBitCast(NewF, LongjmpF->getType(), "longjmp.cast"); in replaceLongjmpWith()
850 LongjmpF->replaceAllUsesWith(NewLongjmp); in replaceLongjmpWith()
898 Function *LongjmpF = M.getFunction("longjmp"); in runOnModule() local
916 if (LongjmpF) { in runOnModule()
917 if (LongjmpF->getFunctionType() != LongjmpF2->getFunctionType()) in runOnModule()
921 LongjmpF = Function::Create(LongjmpF2->getFunctionType(), in runOnModule()
924 LongjmpF2->replaceAllUsesWith(LongjmpF); in runOnModule()
987 bool LongjmpUsed = LongjmpF && !LongjmpF->use_empty(); in runOnModule()
1046 if (LongjmpF) in runOnModule()
1047 replaceLongjmpWith(LongjmpF, EnableEmSjLj ? EmLongjmpF : WasmLongjmpF); in runOnModule()