<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57686>57686</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            FTBFS in SPIRVDuplicatesTracker.cpp of release/15.x
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kpajko79
      </td>
    </tr>
</table>

<pre>
    Hello,

While trying to compile the experimental SPIRV backend, an error is reported:

ld.lld: error: undefined symbol: llvm::MachineInstr::dump() const

The method is unconditionally present in MachineInstr.h, but not in MachineInstr.cpp:
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

The issue is already fixed on the main branch in 59351fe340f20a605bae53260ed30a8e0fd95cb6.
Could you please cherry-pick it to the release branch?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlkt1u4yAQhZ_GvkG1CMROfOGLpGl2K7VVtU27lxU_45gGgwV4Vb_9gt2q1a6EgJmBw8cBbuXU_AStbUauM3zI8G7pf3dKAwpuUuaMgkXC9sOc6QDB-wBO9WAC0-jp8fbXC-JMXMDIKIKYQeCcdUh55GCwLoDM6O67uJaF1im5rEyT0UholQGJ_NRzq1NO6z992kl390x0sXhrfHBLRo79kJFtRuqIFtPf5U-RsYfQWZkYRhMXSBWUNUzrCQ0OfERHyqDvskWX4PkYkLH_F8UwfN2BUNWijKw-iCPGw-Fm__wjwWSb69jQV-nu7uX-9eZht7-7eT083z_GRf-yKu_H1COmHTA5oVa9RyOsmd3uWYThjhnRJayypuWqBbrGLcGswiVnUFJSYZAUsy3gVtal4FWx6F_bUUs02RENGpgHJLro-XQ1KHFBKqSnTYc4WKrLORk95tCsqorUJa5XVS4bKmtaszyooKE5nvbHpwQzP_5hHLQSLIA_ufQNZreQbT9FM3JclcV7PjrddCEMPjlJjrGdVehGXsS_FYP5tZfhanD2DUSI4eyNj5NyU22rvGswZSXHYs2YEJwxvm4liREp17DhcrXNNeOgfZOV-6w85KohmJB4iTist7QqaipiwDZYblsazczWGKLFukgHF9adc9fMDHw8-1jUygf_VWTeq7MB-NRnY_xnrrkM7O1iN3U-8zYz7F-6KRJz">