From e28e67d972ac8e914aa74872a518c1caa7126cfb Mon Sep 17 00:00:00 2001 From: fodinabor <5982050+fodinabor@users.noreply.github.com> Date: Tue, 23 May 2023 05:35:01 +0200 Subject: Add new "Debug intrinsics" filter. (#5045) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/compilers/java.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compilers/java.ts') 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, -- cgit v1.2.3