MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / linkage_name

Method linkage_name

cranelift/module/src/module.rs:242–250  ·  view source on GitHub ↗

The linkage name of the function. Synthesized from the given function id if it is an anonymous function.

(&self, id: FuncId)

Source from the content-addressed store, hash-verified

240 ///
241 /// Synthesized from the given function id if it is an anonymous function.
242 pub fn linkage_name(&self, id: FuncId) -> Cow<'_, str> {
243 match &self.name {
244 Some(name) => Cow::Borrowed(name),
245 // Symbols starting with .L are completely omitted from the symbol table after linking.
246 // Using hexadecimal instead of decimal for slightly smaller symbol names and often
247 // slightly faster linking.
248 None => Cow::Owned(format!(".Lfn{:x}", id.as_u32())),
249 }
250 }
251
252 fn merge(
253 &mut self,

Callers 8

mergeMethod · 0.80
define_function_bytesMethod · 0.80
define_dataMethod · 0.80
define_dataMethod · 0.80
define_function_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected