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/rust.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/rust.ts')
-rw-r--r-- | lib/compilers/rust.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compilers/rust.ts b/lib/compilers/rust.ts index 49d707217..98683f6d9 100644 --- a/lib/compilers/rust.ts +++ b/lib/compilers/rust.ts @@ -59,6 +59,7 @@ export class RustCompiler extends BaseCompiler { this.compiler.supportsRustHirView = isNightly; this.compiler.irArg = ['--emit', 'llvm-ir']; + this.compiler.minIrArgs = ['--emit=llvm-ir']; this.compiler.llvmOptArg = ['-C', 'llvm-args=-print-after-all -print-before-all']; this.compiler.llvmOptModuleScopeArg = ['-C', 'llvm-args=-print-module-scope']; this.compiler.llvmOptNoDiscardValueNamesArg = isNightly ? ['-Z', 'fewer-names=no'] : []; |