Files
compiler-explorer/test/demangle-cases/bug-978.asm.json
narpfel 98c91227fa Fix go-to label with position-independent code (#7522)
Resolves #7521.

With this PR, `@...` suffixes are included in the clickable area for
go-to label.

This also affects PowerPC, where `@...` suffixes are a bit more common
(`@ha` and `@l` will also be marked as clickable).

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-04-17 12:25:28 -05:00

114 lines
1.8 KiB
JSON
Generated

{
"asm": [
{
"labels": [],
"source": null,
"text": "D::a():",
},
{
"labels": [],
"source": null,
"text": " push rbp",
},
{
"labels": [],
"source": null,
"text": " mov rbp, rsp",
},
{
"labels": [],
"source": null,
"text": " mov QWORD PTR [rbp-8], rdi",
},
{
"labels": [],
"source": null,
"text": " mov eax, 1",
},
{
"labels": [],
"source": null,
"text": " pop rbp",
},
{
"labels": [],
"source": null,
"text": " ret",
},
{
"labels": [],
"source": null,
"text": "D::abc():",
},
{
"labels": [],
"source": null,
"text": " push rbp",
},
{
"labels": [],
"source": null,
"text": " mov rbp, rsp",
},
{
"labels": [],
"source": null,
"text": " mov QWORD PTR [rbp-8], rdi",
},
{
"labels": [],
"source": null,
"text": " mov eax, 1",
},
{
"labels": [],
"source": null,
"text": " pop rbp",
},
{
"labels": [],
"source": null,
"text": " ret",
},
{
"labels": [],
"source": null,
"text": "C::a():",
},
{
"labels": [],
"source": null,
"text": " push rbp",
},
{
"labels": [],
"source": null,
"text": " mov rbp, rsp",
},
{
"labels": [],
"source": null,
"text": " mov QWORD PTR [rbp-8], rdi",
},
{
"labels": [],
"source": null,
"text": " mov eax, 1",
},
{
"labels": [],
"source": null,
"text": " pop rbp",
},
{
"labels": [],
"source": null,
"text": " ret",
},
],
"labelDefinitions": {
"C::a()": 15,
"D::a()": 1,
"D::abc()": 8,
},
}