1
Fork 0

Remove Linkage::Appending

It can only be used for certain LLVM internal variables like
llvm.global_ctors which users are not allowed to define.
This commit is contained in:
bjorn3 2025-02-07 14:52:07 +00:00
parent 382e4031c2
commit f68cd90412
6 changed files with 0 additions and 7 deletions

View file

@ -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,

View file

@ -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