<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 - missing code for llvm::emitStrNLen declaration"
   href="https://bugs.llvm.org/show_bug.cgi?id=47354">47354</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>missing code for llvm::emitStrNLen declaration
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Transformation Utilities
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yyc1992@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This public API was added in
<a href="https://github.com/llvm/llvm-project/commit/7ba5b98720e020a628f3f1c11e924b384b7883b3">https://github.com/llvm/llvm-project/commit/7ba5b98720e020a628f3f1c11e924b384b7883b3</a>
and the code for it was removed in
<a href="https://github.com/llvm/llvm-project/commit/455ea11d13a1f88d8c5c65f78ef21a81efab8f22">https://github.com/llvm/llvm-project/commit/455ea11d13a1f88d8c5c65f78ef21a81efab8f22</a>.
The reason for the removal appears to be "dead code" although it is unclear how
can a public API be determined to be dead code.

I do think the correct fix here is to add back the definition though I'd like
to ask first if there's any deeper reasons behind the removal. Apparently no
one is using it since no one appears to have complained so far... In any case,
even if the function is to be removed the declaration should be removed as
well.

I noticed this when working on a ABI compatible backport for
<a href="https://reviews.llvm.org/D86837">https://reviews.llvm.org/D86837</a>. The compatibility wrapper functions I generate
from the header causes a linker error due to missing function...</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>