(backendOptions: Record<string, any>, outputFilename: string)
| 241 | } |
| 242 | |
| 243 | override optionsForBackend(backendOptions: Record<string, any>, outputFilename: string) { |
| 244 | // The super class handles the GCC dump files that may be needed by |
| 245 | // rustc-cg-gcc subclass. |
| 246 | const opts = super.optionsForBackend(backendOptions, outputFilename); |
| 247 | |
| 248 | if (backendOptions.produceRustMir && this.compiler.supportsRustMirView) { |
| 249 | const of = this.getRustMirOutputFilename(outputFilename); |
| 250 | opts.push('--emit', `mir=${of}`); |
| 251 | } |
| 252 | return opts; |
| 253 | } |
| 254 | |
| 255 | override getOptFilePath(dirPath: string, outputFilebase: string): string { |
| 256 | // Find a file in dirPath that ends with codegen.opt.yaml, and return it |
no test coverage detected