diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2022-07-04 11:32:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 11:32:21 -0400 |
commit | edf3fadfe5c49fd5271a5a483367ab78e99594d5 (patch) | |
tree | e020d6ebf92a6dabf185de1ef0bef40b7c73d39d /lib/compilers/argument-parsers.js | |
parent | 33c2951a38fd7cc4d3000fc7410187499972a660 (diff) | |
download | compiler-explorer-edf3fadfe5c49fd5271a5a483367ab78e99594d5.tar.gz compiler-explorer-edf3fadfe5c49fd5271a5a483367ab78e99594d5.zip |
Add -fno-discard-value-names support for the llvm opt viewer (#3836)gh-3549
* Added -fno-discard-value-names support for the llvm opt viewer
* Added -Z fewer-names=no for rustc
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r-- | lib/compilers/argument-parsers.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index 3797f7aff..caa1e4166 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -155,9 +155,13 @@ export class ClangParser extends BaseParser { compiler.compiler.supportsLLVMOptPipelineView = true; compiler.compiler.llvmOptArg = ['-mllvm', '--print-before-all', '-mllvm', '--print-after-all']; compiler.compiler.llvmOptModuleScopeArg = []; + compiler.compiler.llvmOptNoDiscardValueNamesArg = []; if (this.mllvmOptions.has('--print-module-scope')) { compiler.compiler.llvmOptModuleScopeArg = ['-mllvm', '-print-module-scope']; } + if (BaseParser.hasSupport(options, '-fno-discard-value-names')) { + compiler.compiler.llvmOptNoDiscardValueNamesArg = ['-fno-discard-value-names']; + } } if (BaseParser.hasSupport(options, '-fcolor-diagnostics')) compiler.compiler.options += ' -fcolor-diagnostics'; |