<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 - Duplicate vtables generated"
href="https://bugs.llvm.org/show_bug.cgi?id=35994">35994</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Duplicate vtables generated
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</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>COFF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brucedawson@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19699" name="attach_19699" title="A report of all vftable symbols that waste more than 31 bytes">attachment 19699</a> <a href="attachment.cgi?id=19699&action=edit" title="A report of all vftable symbols that waste more than 31 bytes">[details]</a></span>
A report of all vftable symbols that waste more than 31 bytes
When running my ShowGlobals tool on the latest Chromium canary I noticed that
many v-tables were showing up multiple times. The attached file is a report for
chrome_child.dll.pdb. The first column is the number of excess copies of the
`vftable' symbols - a value of 1 means there is 1 extra copy, or 2 total.
The second column is the space wasted, in bytes. It is simply the size of the
v-table times the first column. The third column is the symbol name.
Possibly related to <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - broken -Wweak-vtables for clang-cl"
href="show_bug.cgi?id=31220">https://bugs.llvm.org/show_bug.cgi?id=31220</a>?
This duplication was not seen when building with VC++. The total waste is not
huge but it seemed worth mentioning. It's not clear whether this is a problem
with the compiler or linker.
Objects that waste less than 32 bytes are not reported on (IIRC).</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>