diff options
author | fodinabor <5982050+fodinabor@users.noreply.github.com> | 2023-05-23 05:35:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 22:35:01 -0500 |
commit | e28e67d972ac8e914aa74872a518c1caa7126cfb (patch) | |
tree | 352d2be7e6fe255326e35f986805937210345f0c /lib/compilers/java.ts | |
parent | c2c5ffd458d32d9adeaf19ff21a5a33c8831d645 (diff) | |
download | compiler-explorer-e28e67d972ac8e914aa74872a518c1caa7126cfb.tar.gz compiler-explorer-e28e67d972ac8e914aa74872a518c1caa7126cfb.zip |
Add new "Debug intrinsics" filter. (#5045)gh-7478
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is
useful to keep coloring the line correspondence between source and IR,
while not polluting the IR with the debug intrinsics.
Admittedly, I don't have much of a clue of what's going on here, so I
might be missing obvious adaptions (e.g. can we disable this for all
non-LLVM compilers for now somehow?).
Also, not really a Node.JS testing wizard either... 🤷🏼
Just wanted this really bad for a workshop that's coming up soon ^^
Only tested with my system's default `clang` for now.
Fixes #5044
---------
Co-authored-by: Matt Godbolt <matt@godbolt.org>
Diffstat (limited to 'lib/compilers/java.ts')
-rw-r--r-- | lib/compilers/java.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/java.ts b/lib/compilers/java.ts index 5b6dac29e..654aab039 100644 --- a/lib/compilers/java.ts +++ b/lib/compilers/java.ts @@ -48,7 +48,7 @@ export class JavaCompiler extends BaseCompiler { super( { // Default is to disable all "cosmetic" filters - disabledFilters: ['labels', 'directives', 'commentOnly', 'trim'], + disabledFilters: ['labels', 'directives', 'commentOnly', 'trim', 'debugCalls'], ...compilerInfo, }, env, |