aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/racket.ts
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-11-28 21:37:15 +0100
committerGitHub <noreply@github.com>2022-11-28 21:37:15 +0100
commit2fa2bbb16a7c2eaa857788d85d9a3aec223508f6 (patch)
tree3be376b9ede013198365d325b8d2240d5ad8478b /lib/compilers/racket.ts
parent90e6e4ecfd62962445dbfb232cb877bfc6724602 (diff)
downloadcompiler-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/racket.ts')
-rw-r--r--lib/compilers/racket.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/compilers/racket.ts b/lib/compilers/racket.ts
index 68bbec757..f77ba783a 100644
--- a/lib/compilers/racket.ts
+++ b/lib/compilers/racket.ts
@@ -25,7 +25,7 @@
import path from 'path';
import {CompilationResult, ExecutionOptions} from '../../types/compilation/compilation.interfaces';
-import {ParseFilters} from '../../types/features/filters.interfaces';
+import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces';
import {BaseCompiler} from '../base-compiler';
import {logger} from '../logger';
@@ -45,7 +45,11 @@ export class RacketCompiler extends BaseCompiler {
this.raco = this.compilerProps<string>(`compiler.${this.compiler.id}.raco`);
}
- override optionsForFilter(filters: ParseFilters, outputFilename: string, userOptions?: string[]): string[] {
+ override optionsForFilter(
+ filters: ParseFiltersAndOutputOptions,
+ outputFilename: string,
+ userOptions?: string[],
+ ): string[] {
// We currently always compile to bytecode first and then decompile.
// Forcing `binary` on like this ensures `objdump` will be called for
// the decompilation phase.
@@ -93,7 +97,7 @@ export class RacketCompiler extends BaseCompiler {
maxSize: number,
intelAsm: any,
demangle: any,
- filters: ParseFilters,
+ filters: ParseFiltersAndOutputOptions,
): Promise<any> {
// Decompile to assembly via `raco decompile` with `disassemble` package
const execOptions: ExecutionOptions = {