<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [codeview] Clang should use a better DISubprogram name for dynamic initializer functions"
href="https://bugs.llvm.org/show_bug.cgi?id=41365">41365</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[codeview] Clang should use a better DISubprogram name for dynamic initializer functions
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rnk@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Otherwise the IDE will display the mangled name, which is silly.
Today, in VS, I see this stack frame:
<span class="quote">> llvm-tblgen.exe!??__EMatchPrefix@@YAXXZ() Line 129 C++</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>