Returns the symbol and metadata associated with a specific function.
(
&self,
module: StaticModuleIndex,
func: DefinedFuncIndex,
)
| 166 | |
| 167 | /// Returns the symbol and metadata associated with a specific function. |
| 168 | fn function( |
| 169 | &self, |
| 170 | module: StaticModuleIndex, |
| 171 | func: DefinedFuncIndex, |
| 172 | ) -> (usize, &'a CompiledFunctionMetadata) { |
| 173 | let (sym, func) = (self.get_func)(module, func); |
| 174 | (self.symbol_id_to_index[&sym].0, func) |
| 175 | } |
| 176 | |
| 177 | /// Maps a `usize`-based symbol used by gimli to the object-based |
| 178 | /// `SymbolId`. |
no outgoing calls
no test coverage detected