aboutsummaryrefslogtreecommitdiff
path: root/lib/parsers/llvm-pass-dump-parser.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/parsers/llvm-pass-dump-parser.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/parsers/llvm-pass-dump-parser.ts')
-rw-r--r--lib/parsers/llvm-pass-dump-parser.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/parsers/llvm-pass-dump-parser.ts b/lib/parsers/llvm-pass-dump-parser.ts
index ef4ae12b9..a210dbabb 100644
--- a/lib/parsers/llvm-pass-dump-parser.ts
+++ b/lib/parsers/llvm-pass-dump-parser.ts
@@ -29,7 +29,7 @@ import {
LLVMOptPipelineResults,
Pass,
} from '../../types/compilation/llvm-opt-pipeline-output.interfaces';
-import {ParseFilters} from '../../types/features/filters.interfaces';
+import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces';
import {ResultLine} from '../../types/resultline/resultline.interfaces';
// Note(jeremy-rifkin):
@@ -497,7 +497,11 @@ export class LlvmPassDumpParser {
);
}
- process(output: ResultLine[], _: ParseFilters, llvmOptPipelineOptions: LLVMOptPipelineBackendOptions) {
+ process(
+ output: ResultLine[],
+ _: ParseFiltersAndOutputOptions,
+ llvmOptPipelineOptions: LLVMOptPipelineBackendOptions,
+ ) {
// Crop out any junk before the pass dumps (e.g. warnings)
const ir = output.slice(
output.findIndex(line => line.text.match(this.irDumpHeader) || line.text.match(this.machineCodeDumpHeader)),