(path: PathBuf)
| 135 | } |
| 136 | |
| 137 | fn parse_input(path: PathBuf) -> Result<Vec<Function>> { |
| 138 | let contents = read_to_string(&path)?; |
| 139 | let funcs = cranelift_reader::parse_functions(&contents) |
| 140 | .with_context(|| format!("parse error in {}", path.display()))?; |
| 141 | Ok(funcs) |
| 142 | } |
| 143 | |
| 144 | /// A convenience function for a quick usize hash |
| 145 | #[inline] |
no test coverage detected