[llvm-bugs] [Bug 41365] New: [codeview] Clang should use a better DISubprogram name for dynamic initializer functions
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 3 15:05:45 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41365
Bug ID: 41365
Summary: [codeview] Clang should use a better DISubprogram name
for dynamic initializer functions
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rnk at google.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Otherwise the IDE will display the mangled name, which is silly.
Today, in VS, I see this stack frame:
> llvm-tblgen.exe!??__EMatchPrefix@@YAXXZ() Line 129 C++
Which is because we emit S_LPROC32_ID like this:
0 | S_LPROC32_ID [size = 56] `??__Ef@@YAXXZ`
parent = 0, end = 0, addr = 0000:0000, code size = 26
type = `0x1004 (??__Ef@@YAXXZ)`, debug start = 0, debug end = 0,
flags = none
Which is because we emit the DISubprogram like this:
!33 = distinct !DISubprogram(name: "??__Ef@@YAXXZ", scope: !3, file: !3, line:
12, type: !34, isLocal: true, isDefinition: true, scopeLine: 12, flags:
DIFlagPrototyped, isO
ptimized: false, unit: !2, retainedNodes: !4)
That "name:" field should be something human friendly instead of the mangled
name.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190403/f80c0a3d/attachment.html>
More information about the llvm-bugs
mailing list