diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-07-15 14:52:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-15 14:52:23 +0000 |
| commit | 0393e061e74672661d7f816103df66b47b1dc312 (patch) | |
| tree | b3d42464413144da825bfc98a7375319f12d4dc5 /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 4faef6f9040c788d564449a2b9431f351bc0f403 (diff) | |
| parent | 28f822f100c3714b37be9566b6dac376c72d2758 (diff) | |
| download | rust-0393e061e74672661d7f816103df66b47b1dc312.tar.gz rust-0393e061e74672661d7f816103df66b47b1dc312.zip | |
Merge pull request #20243 from lnicola/sync-from-rust
minor: Sync from downstream
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index adb53e0b66c..1ea5a062254 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -370,22 +370,6 @@ pub(crate) fn llfn_attrs_from_instance<'ll, 'tcx>( }; to_add.extend(inline_attr(cx, inline)); - // The `uwtable` attribute according to LLVM is: - // - // This attribute indicates that the ABI being targeted requires that an - // unwind table entry be produced for this function even if we can show - // that no exceptions passes by it. This is normally the case for the - // ELF x86-64 abi, but it can be disabled for some compilation units. - // - // Typically when we're compiling with `-C panic=abort` (which implies this - // `no_landing_pads` check) we don't need `uwtable` because we can't - // generate any exceptions! On Windows, however, exceptions include other - // events such as illegal instructions, segfaults, etc. This means that on - // Windows we end up still needing the `uwtable` attribute even if the `-C - // panic=abort` flag is passed. - // - // You can also find more info on why Windows always requires uwtables here: - // https://bugzilla.mozilla.org/show_bug.cgi?id=1302078 if cx.sess().must_emit_unwind_tables() { to_add.push(uwtable_attr(cx.llcx, cx.sess().opts.unstable_opts.use_sync_unwind)); } |
