Rename InstructionFormat::IndirectCall for consistency with Opcode::CallIndirect.

This commit is contained in:
Dan Gohman
2018-04-17 09:43:05 -07:00
parent e2f6705e28
commit a9edb28414
10 changed files with 15 additions and 15 deletions

View File

@@ -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..])
}
_ => {

View File

@@ -51,7 +51,7 @@ pub fn expand_call(
);
}
func.dfg.replace(inst).IndirectCall(
func.dfg.replace(inst).CallIndirect(
ir::Opcode::CallIndirect,
ptr_ty,
sig,

View File

@@ -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)?;
}

View File

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