mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 11:44:09 -05:00
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>
66 lines
2.3 KiB
Plaintext
66 lines
2.3 KiB
Plaintext
{
|
|
"sessions": [
|
|
{
|
|
"id": 1,
|
|
"language": "c++",
|
|
"source": "// Type your code here, or load an example.\nint square(int num) {\n auto x = 344 + 5 + 1;\n return num * num + 234 + x;\n}\n\nint main() {\n return square(23);\n}\n",
|
|
"compilers": [
|
|
{
|
|
"_internalid": 1,
|
|
"filters": {
|
|
"binary": false,
|
|
"commentOnly": true,
|
|
"demangle": true,
|
|
"directives": true,
|
|
"execute": false,
|
|
"intel": true,
|
|
"labels": true,
|
|
"debugCalls": false,
|
|
"trim": false
|
|
},
|
|
"id": "g92",
|
|
"libs": [],
|
|
"options": "-O3",
|
|
"specialoutputs": [],
|
|
"tools": []
|
|
}
|
|
],
|
|
"conformanceview": false,
|
|
"executors": [
|
|
{
|
|
"arguments": "test",
|
|
"argumentsVisible": true,
|
|
"compiler": {
|
|
"id": "g92",
|
|
"libs": [
|
|
{
|
|
"name": "openssl",
|
|
"ver": "111c"
|
|
}
|
|
],
|
|
"options": "-O3",
|
|
"specialoutputs": [],
|
|
"tools": [],
|
|
"filters": {
|
|
"binary": false,
|
|
"commentOnly": true,
|
|
"demangle": true,
|
|
"directives": true,
|
|
"execute": false,
|
|
"intel": true,
|
|
"labels": true,
|
|
"debugCalls": false,
|
|
"trim": false
|
|
}
|
|
},
|
|
"compilerOutputVisible": true,
|
|
"compilerVisible": false,
|
|
"stdin": "",
|
|
"stdinVisible": false,
|
|
"wrap": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"trees": []
|
|
} |