(function: &Function)
| 365 | } |
| 366 | |
| 367 | fn has_dont_inline(function: &Function) -> bool { |
| 368 | let def = function.def.as_ref().unwrap(); |
| 369 | let control = def.operands[0].unwrap_function_control(); |
| 370 | control.contains(FunctionControl::DONT_INLINE) |
| 371 | } |
| 372 | |
| 373 | /// Helper error type for `should_inline` (see its doc comment). |
| 374 | #[derive(Copy, Clone, PartialEq, Eq)] |