diff options
| author | Jan-Mirko Otter <janmirko.otter@googlemail.com> | 2023-05-22 00:28:44 +0200 |
|---|---|---|
| committer | Jan-Mirko Otter <janmirko.otter@googlemail.com> | 2023-06-07 17:48:33 +0200 |
| commit | 12ad6622add9246e37ba22f5c3f1f0d212806559 (patch) | |
| tree | 15b9469e8c7d45e9593bc090e01cdbe6299a1bcc /compiler/rustc_codegen_llvm/src | |
| parent | 82730b452147a3137a732f7f7dc6b7cb2e14f4f9 (diff) | |
| download | rust-12ad6622add9246e37ba22f5c3f1f0d212806559.tar.gz rust-12ad6622add9246e37ba22f5c3f1f0d212806559.zip | |
add comment regarding `__gxx_wasm_personality_v0`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 7cb7506a7c3..287a22bc9a6 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -536,6 +536,10 @@ impl<'ll, 'tcx> MiscMethods<'tcx> for CodegenCx<'ll, 'tcx> { let name = if wants_msvc_seh(self.sess()) { Some("__CxxFrameHandler3") } else if wants_wasm_eh(self.sess()) { + // LLVM specifically tests for the name of the personality function + // There is no need for this function to exist anywhere, it will + // not be called. However, its name has to be "__gxx_wasm_personality_v0" + // for native wasm exceptions. Some("__gxx_wasm_personality_v0") } else { None |
