Files
compiler-explorer/test/demangle-cases/bug-515.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

60 lines
971 B
JSON
Generated

{
"asm": [
{
"labels": [],
"source": null,
"text": "bar():",
},
{
"labels": [],
"source": null,
"text": " movl $foo, %eax",
},
{
"labels": [],
"source": null,
"text": " ret",
},
{
"labels": [],
"source": null,
"text": "bar2():",
},
{
"labels": [],
"source": null,
"text": " movl $foo2, %eax",
},
{
"labels": [],
"source": null,
"text": " ret",
},
{
"labels": [],
"source": null,
"text": "foo2:",
},
{
"labels": [],
"source": null,
"text": " .long 1",
},
{
"labels": [],
"source": null,
"text": "foo:",
},
{
"labels": [],
"source": null,
"text": " .long 2",
},
],
"labelDefinitions": {
"bar()": 1,
"bar2()": 4,
"foo": 9,
"foo2": 7,
},
}