(inputFilename: string, filters: ParseFiltersAndOutputOptions)
| 303 | |
| 304 | // Override the IR file name method for rustc because the output file is different from clang. |
| 305 | override getIrOutputFilename(inputFilename: string, filters: ParseFiltersAndOutputOptions): string { |
| 306 | const outputFilename = this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase); |
| 307 | // As per #4054, if we are asked for binary mode, the output will be in the .s file, no .ll will be emited |
| 308 | if (!filters.binary) { |
| 309 | return changeExtension(outputFilename, '.ll'); |
| 310 | } |
| 311 | return outputFilename; |
| 312 | } |
| 313 | |
| 314 | override getArgumentParserClass() { |
| 315 | return RustParser; |
no test coverage detected