Get the call signature of a direct or indirect call instruction. Returns `None` if `inst` is not a call instruction.
(&self, inst: Inst)
| 1105 | /// Get the call signature of a direct or indirect call instruction. |
| 1106 | /// Returns `None` if `inst` is not a call instruction. |
| 1107 | pub fn call_signature(&self, inst: Inst) -> Option<SigRef> { |
| 1108 | match self.insts[inst].analyze_call(&self.value_lists, &self.exception_tables) { |
| 1109 | CallInfo::NotACall => None, |
| 1110 | CallInfo::Direct(f, _) => Some(self.ext_funcs[f].signature), |
| 1111 | CallInfo::DirectWithSig(_, s, _) => Some(s), |
| 1112 | CallInfo::Indirect(s, _) => Some(s), |
| 1113 | } |
| 1114 | } |
| 1115 | |
| 1116 | /// Like `call_signature` but returns none for tail call |
| 1117 | /// instructions and try-call (exception-handling invoke) |
no test coverage detected