diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2021-11-08 18:52:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 18:52:30 +0100 |
commit | 6f18695dc0efc0baad6567822e199eefdd47f83e (patch) | |
tree | 50bdf4b312a953e8d4c1ed2cc4d5425650ea1b25 /lib/compilers/ada.js | |
parent | ed0609bb90e86b4f78b5101b9ee4946d948cf225 (diff) | |
download | compiler-explorer-6f18695dc0efc0baad6567822e199eefdd47f83e.tar.gz compiler-explorer-6f18695dc0efc0baad6567822e199eefdd47f83e.zip |
Refactor GCC dump handling (#3024)gh-1250
This change allows for only dumping a single pass (the one selected). In order
to populate the list of available dumps, it now queries GCC for the enabled
passes.
It can still be misleading to users as a pass can be enabled but for some reason
does not dump anything. In order to avoid this, the only solution seems to be to
still dump all files and filter the list... This defeats the initial goal and
only adds complexity for the current compilers.
But this makes #2868 easier to implement (see #2985 that was a aborted first
attempt) and if someday another libgccjit-based compiler is added, it could be
easily hooked to this.
It also changes the naming in the drop down menu. For example, instead of :
'009t.omplower' it now uses 'omplower (tree)' (ie.
'<pass-name> (tree|ipa|rtl)').
Fixes #3014
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
Diffstat (limited to 'lib/compilers/ada.js')
-rw-r--r-- | lib/compilers/ada.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js index 7d61d70c4..971564edb 100644 --- a/lib/compilers/ada.js +++ b/lib/compilers/ada.js @@ -33,6 +33,7 @@ export class AdaCompiler extends BaseCompiler { constructor(info, env) { super(info, env); this.compiler.supportsGccDump = true; + this.compiler.removeEmptyGccDump = true; this.compiler.supportsIntel = true; this.compiler.supportsGnatDebugView = true; } |