diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-07 14:52:07 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-07 16:02:19 +0000 |
| commit | f68cd9041273ffc0620211b96689935b0ceb82ad (patch) | |
| tree | cc8cbd8cf177785fadf274d85a540045d9756846 /compiler/rustc_codegen_ssa | |
| parent | 382e4031c28c3603fb279378f247f675e370291d (diff) | |
| download | rust-f68cd9041273ffc0620211b96689935b0ceb82ad.tar.gz rust-f68cd9041273ffc0620211b96689935b0ceb82ad.zip | |
Remove Linkage::Appending
It can only be used for certain LLVM internal variables like llvm.global_ctors which users are not allowed to define.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/codegen_attrs.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/naked_asm.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs index cb4e1465a98..7acdbd19993 100644 --- a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs +++ b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs @@ -41,7 +41,6 @@ fn linkage_by_name(tcx: TyCtxt<'_>, def_id: LocalDefId, name: &str) -> Linkage { // ghost, dllimport, dllexport and linkonce_odr_autohide are not supported // and don't have to be, LLVM treats them as no-ops. match name { - "appending" => Appending, "available_externally" => AvailableExternally, "common" => Common, "extern_weak" => ExternalWeak, diff --git a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs index 7003a6145ec..eb0711dbb32 100644 --- a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs +++ b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs @@ -190,7 +190,6 @@ fn prefix_and_suffix<'tcx>( Linkage::Internal => { // write nothing } - Linkage::Appending => emit_fatal("Only global variables can have appending linkage!"), Linkage::Common => emit_fatal("Functions may not have common linkage"), Linkage::AvailableExternally => { // this would make the function equal an extern definition |
