diff options
Diffstat (limited to 'lib/compilers/argument-parsers.ts')
-rw-r--r-- | lib/compilers/argument-parsers.ts | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts index cd89e9783..026c61c3c 100644 --- a/lib/compilers/argument-parsers.ts +++ b/lib/compilers/argument-parsers.ts @@ -275,15 +275,16 @@ export class ClangParser extends BaseParser { this.mllvmOptions.has('--print-before-all') && this.mllvmOptions.has('--print-after-all') ) { - compiler.compiler.supportsOptPipelineView = true; - compiler.compiler.optPipelineArg = ['-mllvm', '--print-before-all', '-mllvm', '--print-after-all']; - compiler.compiler.optPipelineModuleScopeArg = []; - compiler.compiler.optPipelineNoDiscardValueNamesArg = []; + compiler.compiler.optPipeline = { + arg: ['-mllvm', '--print-before-all', '-mllvm', '--print-after-all'], + moduleScopeArg: [], + noDiscardValueNamesArg: [], + }; if (this.mllvmOptions.has('--print-module-scope')) { - compiler.compiler.optPipelineModuleScopeArg = ['-mllvm', '-print-module-scope']; + compiler.compiler.optPipeline.moduleScopeArg = ['-mllvm', '-print-module-scope']; } if (this.hasSupport(options, '-fno-discard-value-names')) { - compiler.compiler.optPipelineNoDiscardValueNamesArg = ['-fno-discard-value-names']; + compiler.compiler.optPipeline.noDiscardValueNamesArg = ['-fno-discard-value-names']; } } @@ -496,15 +497,16 @@ export class LDCParser extends BaseParser { } if (this.hasSupport(options, '--print-before-all') && this.hasSupport(options, '--print-after-all')) { - compiler.compiler.supportsOptPipelineView = true; - compiler.compiler.optPipelineArg = ['--print-before-all', '--print-after-all']; - compiler.compiler.optPipelineModuleScopeArg = []; - compiler.compiler.optPipelineNoDiscardValueNamesArg = []; + compiler.compiler.optPipeline = { + arg: ['--print-before-all', '--print-after-all'], + moduleScopeArg: [], + noDiscardValueNamesArg: [], + }; if (this.hasSupport(options, '--print-module-scope')) { - compiler.compiler.optPipelineModuleScopeArg = ['--print-module-scope']; + compiler.compiler.optPipeline.moduleScopeArg = ['--print-module-scope']; } if (this.hasSupport(options, '--fno-discard-value-names')) { - compiler.compiler.optPipelineNoDiscardValueNamesArg = ['--fno-discard-value-names']; + compiler.compiler.optPipeline.noDiscardValueNamesArg = ['--fno-discard-value-names']; } } |