MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / getIrOutputFilename

Method getIrOutputFilename

lib/compilers/rust.ts:305–312  ·  view source on GitHub ↗
(inputFilename: string, filters: ParseFiltersAndOutputOptions)

Source from the content-addressed store, hash-verified

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;

Callers 1

generateIRMethod · 0.95

Calls 2

changeExtensionFunction · 0.85
getOutputFilenameMethod · 0.65

Tested by

no test coverage detected