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:
parent
8abff35b41
commit
edff4fe2cc
5 changed files with 14 additions and 136 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue