Remove some dead code from the abi code (#4653)
These were originally used by the old backend framework as part of legalizing function signatures for the respective ABI.
This commit is contained in:
@@ -134,20 +134,6 @@ impl ABIMachineSpec for AArch64MachineDeps {
|
||||
};
|
||||
|
||||
for param in params {
|
||||
// Validate "purpose".
|
||||
match ¶m.purpose {
|
||||
&ir::ArgumentPurpose::VMContext
|
||||
| &ir::ArgumentPurpose::Normal
|
||||
| &ir::ArgumentPurpose::StackLimit
|
||||
| &ir::ArgumentPurpose::SignatureId
|
||||
| &ir::ArgumentPurpose::StructReturn
|
||||
| &ir::ArgumentPurpose::StructArgument(_) => {}
|
||||
_ => panic!(
|
||||
"Unsupported argument purpose {:?} in signature: {:?}",
|
||||
param.purpose, params
|
||||
),
|
||||
}
|
||||
|
||||
assert!(
|
||||
legal_type_for_machine(param.value_type),
|
||||
"Invalid type for AArch64: {:?}",
|
||||
|
||||
Reference in New Issue
Block a user