compiler: remove AbiDatas

These were a way to ensure hashes were stable over time for ExternAbi,
but simply hashing the strings is more stable in the face of changes.
As a result, we can do away with them.
This commit is contained in:
Jubilee Young 2025-02-10 16:41:02 -08:00
parent 8abff35b41
commit edff4fe2cc
5 changed files with 14 additions and 136 deletions

View file

@ -480,7 +480,7 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
ExternAbi::C { unwind: false } => cx.push("KC"),
abi => {
cx.push("K");
let name = abi.name();
let name = abi.as_str();
if name.contains('-') {
cx.push_ident(&name.replace('-', "_"));
} else {