Lines Matching refs:LongjmpF
361 void replaceLongjmpWith(Function *LongjmpF, Function *NewF);
816 void WebAssemblyLowerEmscriptenEHSjLj::replaceLongjmpWith(Function *LongjmpF, in replaceLongjmpWith() argument
819 Module *M = LongjmpF->getParent(); in replaceLongjmpWith()
821 LLVMContext &C = LongjmpF->getParent()->getContext(); in replaceLongjmpWith()
826 for (User *U : LongjmpF->users()) { in replaceLongjmpWith()
828 if (CI && CI->getCalledFunction() == LongjmpF) { in replaceLongjmpWith()
845 if (!LongjmpF->uses().empty()) { in replaceLongjmpWith()
847 IRB.CreateBitCast(NewF, LongjmpF->getType(), "longjmp.cast"); in replaceLongjmpWith()
848 LongjmpF->replaceAllUsesWith(NewLongjmp); in replaceLongjmpWith()
896 Function *LongjmpF = M.getFunction("longjmp"); in runOnModule() local
914 if (LongjmpF) { in runOnModule()
915 if (LongjmpF->getFunctionType() != LongjmpF2->getFunctionType()) in runOnModule()
919 LongjmpF = Function::Create(LongjmpF2->getFunctionType(), in runOnModule()
922 LongjmpF2->replaceAllUsesWith(LongjmpF); in runOnModule()
985 bool LongjmpUsed = LongjmpF && !LongjmpF->use_empty(); in runOnModule()
1044 if (LongjmpF) in runOnModule()
1045 replaceLongjmpWith(LongjmpF, EnableEmSjLj ? EmLongjmpF : WasmLongjmpF); in runOnModule()