The linkage name of the function. Synthesized from the given function id if it is an anonymous function.
(&self, id: FuncId)
| 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, |
no outgoing calls
no test coverage detected