diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2022-11-28 21:37:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 21:37:15 +0100 |
commit | 2fa2bbb16a7c2eaa857788d85d9a3aec223508f6 (patch) | |
tree | 3be376b9ede013198365d325b8d2240d5ad8478b /lib/compilers/rust.ts | |
parent | 90e6e4ecfd62962445dbfb232cb877bfc6724602 (diff) | |
download | compiler-explorer-2fa2bbb16a7c2eaa857788d85d9a3aec223508f6.tar.gz compiler-explorer-2fa2bbb16a7c2eaa857788d85d9a3aec223508f6.zip |
refactor: renames the CompilerFilters type (#4346)gh-5117
The type which probably started as a real enum of possible post filtering
options now also includes options used for compilers' invocations.
The type was already split, but the naming was not reflecting this in the other
part of the code.
This changes tries to apply a simple renaming to the type only (corresponding
variables are left as 'filters').
While doing so, some typing error were discovered around the GccDump feature.
A fix for this will follow in a different PR.
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Diffstat (limited to 'lib/compilers/rust.ts')
-rw-r--r-- | lib/compilers/rust.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/rust.ts b/lib/compilers/rust.ts index 28345e335..b0cb6484c 100644 --- a/lib/compilers/rust.ts +++ b/lib/compilers/rust.ts @@ -27,7 +27,7 @@ import path from 'path'; import _ from 'underscore'; import {BasicExecutionResult, UnprocessedExecResult} from '../../types/execution/execution.interfaces'; -import {ParseFilters} from '../../types/features/filters.interfaces'; +import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces'; import {BaseCompiler} from '../base-compiler'; import {BuildEnvDownloadInfo} from '../buildenvsetup/buildenv.interfaces'; import {parseRustOutput} from '../utils'; @@ -149,7 +149,7 @@ export class RustCompiler extends BaseCompiler { } // Override the IR file name method for rustc because the output file is different from clang. - override getIrOutputFilename(inputFilename: string, filters: ParseFilters): string { + override getIrOutputFilename(inputFilename: string, filters: ParseFiltersAndOutputOptions): string { const outputFilename = this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase); // As per #4054, if we are asked for binary mode, the output will be in the .s file, no .ll will be emited if (!filters.binary) { |