Use Windows' C++ exception handler.

We don't emit any funclets in our code, but there should be a funclet for the
exception in the native C++ function `throw_breakpoint` in object_loader.hh.
This commit is contained in:
Nick Lewycky 2019-08-07 12:32:02 -07:00
parent 180522095f
commit e735d33327

View File

@ -4503,7 +4503,8 @@ impl ModuleCodeGenerator<LLVMFunctionCodeGenerator, LLVMBackend, CodegenError>
let intrinsics = Intrinsics::declare(&module, &context);
let personality_func = module.add_function(
"__gxx_personality_v0",
// "__gxx_personality_v0",
"__CxxFrameHandler3",
intrinsics.i32_ty.fn_type(&[], false),
Some(Linkage::External),
);