<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 - [DWARF] Add count of template methods to the class definition"
   href="https://bugs.llvm.org/show_bug.cgi?id=37816">37816</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[DWARF] Add count of template methods to the class definition
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>paul_robinson@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>aprantl@apple.com, clayborg@gmail.com, dblaikie@gmail.com, echristo@gmail.com, labath@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Add a DWARF attribute to the class definition, reporting a count of
template methods (not instantiations) defined within the class.

In a discussion between myself and Greg Clayton
<a href="http://lists.llvm.org/pipermail/llvm-dev/2018-June/124085.html">http://lists.llvm.org/pipermail/llvm-dev/2018-June/124085.html</a>
this seemed to be a fairly cheap way to provide LLDB with useful
information to help it translate DWARF into Clang ASTs without
excessive performance cost.

Of course this would have to be plumbed through from Clang CodeGen
through DIBuilder and down into DwarfDebug, with requisite stops
along the way in the bitcode reader/writer.  It can't be derived
within LLVM because this is a count of template *definitions* not
*instantiations*.

Probably worth proposing for DWARF v6; in the meantime it would
have to be an LLVM extension attribute.</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>