mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -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>
114 lines
3.0 KiB
JSON
114 lines
3.0 KiB
JSON
{
|
|
"sessions": [
|
|
{
|
|
"id": 1,
|
|
"language": "c++",
|
|
"source": "#include \"square.h\"\n\nint main(int argc, char **argv) {\n return square(argc);\n}\n",
|
|
"conformanceview": false,
|
|
"compilers": [],
|
|
"executors": [],
|
|
"filename": "example.cpp"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"language": "c++",
|
|
"source": "#pragma once\n\nint square(int num);\n",
|
|
"conformanceview": false,
|
|
"compilers": [],
|
|
"executors": [],
|
|
"filename": "square.h"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"language": "c++",
|
|
"source": "#include \"square.h\"\n\nint square(int num) {\n return num * num;\n}\n",
|
|
"conformanceview": false,
|
|
"compilers": [],
|
|
"executors": [],
|
|
"filename": "square.cpp"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"language": "cmake",
|
|
"source": "project(hello)\n\nadd_executable(output.s\n example.cpp\n square.cpp)\n",
|
|
"conformanceview": false,
|
|
"compilers": [],
|
|
"executors": [],
|
|
"filename": "CMakeLists.txt"
|
|
}
|
|
],
|
|
"trees": [
|
|
{
|
|
"id": 1,
|
|
"cmakeArgs": "",
|
|
"customOutputFilename": "",
|
|
"isCMakeProject": true,
|
|
"compilerLanguageId": "c++",
|
|
"files": [
|
|
{
|
|
"fileId": 1,
|
|
"isIncluded": true,
|
|
"isOpen": true,
|
|
"isMainSource": false,
|
|
"filename": "example.cpp",
|
|
"content": "#include \"square.h\"\n\nint main(int argc, char **argv) {\n return square(argc);\n}\n",
|
|
"editorId": 1,
|
|
"langId": "c++"
|
|
},
|
|
{
|
|
"fileId": 2,
|
|
"isIncluded": true,
|
|
"isOpen": true,
|
|
"isMainSource": false,
|
|
"filename": "square.h",
|
|
"content": "#pragma once\n\nint square(int num);\n",
|
|
"editorId": 2,
|
|
"langId": "c++"
|
|
},
|
|
{
|
|
"fileId": 3,
|
|
"isIncluded": true,
|
|
"isOpen": false,
|
|
"isMainSource": true,
|
|
"filename": "CMakeLists.txt",
|
|
"content": "project(hello)\n\nadd_executable(output.s\n example.cpp\n square.cpp)\n",
|
|
"editorId": -1,
|
|
"langId": "cmake"
|
|
},
|
|
{
|
|
"fileId": 4,
|
|
"isIncluded": true,
|
|
"isOpen": true,
|
|
"isMainSource": false,
|
|
"filename": "square.cpp",
|
|
"content": "#include \"square.h\"\n\nint square(int num) {\n return num * num;\n}\n",
|
|
"editorId": 4,
|
|
"langId": ""
|
|
}
|
|
],
|
|
"newFileId": 7,
|
|
"compilers": [
|
|
{
|
|
"id": "g103",
|
|
"options": "-g -O3 -flto",
|
|
"filters": {
|
|
"binary": true,
|
|
"commentOnly": true,
|
|
"demangle": true,
|
|
"directives": true,
|
|
"execute": false,
|
|
"intel": true,
|
|
"labels": true,
|
|
"debugCalls": false,
|
|
"trim": false
|
|
},
|
|
"libs": [],
|
|
"specialoutputs": ["compilerOutput"],
|
|
"tools": []
|
|
}
|
|
],
|
|
"executors": []
|
|
}
|
|
]
|
|
}
|