Finalize this TestFile and link all functions.
(mut self)
| 344 | |
| 345 | /// Finalize this TestFile and link all functions. |
| 346 | pub fn compile(mut self) -> Result<CompiledTestFile, CompilationError> { |
| 347 | // Finalize the functions which we just defined, which resolves any |
| 348 | // outstanding relocations (patching in addresses, now that they're |
| 349 | // available). |
| 350 | self.module.finalize_definitions()?; |
| 351 | |
| 352 | Ok(CompiledTestFile { |
| 353 | module: Some(self.module), |
| 354 | defined_functions: self.defined_functions, |
| 355 | trampolines: self.trampolines, |
| 356 | }) |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | /// A finalized Test File |