Pretty-print a Cranelift error.
(func: &ir::Function, err: CodegenError)
| 212 | |
| 213 | /// Pretty-print a Cranelift error. |
| 214 | pub fn pretty_error(func: &ir::Function, err: CodegenError) -> String { |
| 215 | if let CodegenError::Verifier(e) = err { |
| 216 | pretty_verifier_error(func, None, e) |
| 217 | } else { |
| 218 | err.to_string() |
| 219 | } |
| 220 | } |
no test coverage detected