Rename InstructionFormat::IndirectCall for consistency with Opcode::CallIndirect.
This commit is contained in:
@@ -248,7 +248,7 @@ impl InstructionData {
|
||||
InstructionData::Call { func_ref, ref args, .. } => {
|
||||
CallInfo::Direct(func_ref, args.as_slice(pool))
|
||||
}
|
||||
InstructionData::IndirectCall { sig_ref, ref args, .. } => {
|
||||
InstructionData::CallIndirect { sig_ref, ref args, .. } => {
|
||||
CallInfo::Indirect(sig_ref, &args.as_slice(pool)[1..])
|
||||
}
|
||||
_ => {
|
||||
|
||||
@@ -51,7 +51,7 @@ pub fn expand_call(
|
||||
);
|
||||
}
|
||||
|
||||
func.dfg.replace(inst).IndirectCall(
|
||||
func.dfg.replace(inst).CallIndirect(
|
||||
ir::Opcode::CallIndirect,
|
||||
ptr_ty,
|
||||
sig,
|
||||
|
||||
@@ -319,7 +319,7 @@ impl<'a> Verifier<'a> {
|
||||
self.verify_func_ref(inst, func_ref)?;
|
||||
self.verify_value_list(inst, args)?;
|
||||
}
|
||||
IndirectCall { sig_ref, ref args, .. } => {
|
||||
CallIndirect { sig_ref, ref args, .. } => {
|
||||
self.verify_sig_ref(inst, sig_ref)?;
|
||||
self.verify_value_list(inst, args)?;
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ pub fn write_operands(
|
||||
Call { func_ref, ref args, .. } => {
|
||||
write!(w, " {}({})", func_ref, DisplayValues(args.as_slice(pool)))
|
||||
}
|
||||
IndirectCall { sig_ref, ref args, .. } => {
|
||||
CallIndirect { sig_ref, ref args, .. } => {
|
||||
let args = args.as_slice(pool);
|
||||
write!(
|
||||
w,
|
||||
|
||||
Reference in New Issue
Block a user