Files
compiler-explorer/test/state/bug-2231.json
fodinabor e28e67d972 Add new "Debug intrinsics" filter. (#5045)
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>
2023-05-22 22:35:01 -05:00

64 lines
1.5 KiB
JSON

{
"sessions": [
{
"id": 1,
"language": "c++",
"source": "#include <Groundfloor/Atoms/Defines.h>\n#include <cstdio>\n\nint main() {\n const char crlf[] = GFNATIVENEXTLINE;\n\n printf(\"hello%s\", crlf);\n return 46;\n}\n\n\n",
"conformanceview": false,
"compilers": [
{
"id": "vc2017_64",
"options": "",
"filters": {
"binary": true,
"commentOnly": false,
"demangle": false,
"directives": false,
"execute": false,
"intel": true,
"labels": false,
"trim": false,
"debugCalls": false
},
"libs": [
{
"name": "openssl",
"ver": "111c"
},
{
"name": "crosscables",
"ver": "trunk"
}
],
"specialoutputs": [],
"tools": []
},
{
"id": "",
"options": "",
"filters": {
"binary": false,
"commentOnly": true,
"demangle": true,
"directives": true,
"execute": false,
"intel": true,
"labels": true,
"trim": false,
"debugCalls": false
},
"libs": [],
"specialoutputs": ["compilerOutput"],
"tools": [
{
"id": "strings",
"args": ""
}
]
}
],
"executors": []
}
]
}