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

    <tr>
        <th>Summary</th>
        <td>
            [LLD] Support --print-dependencies
        </td>
    </tr>

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

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

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

<pre>
    [mold](https://github.com/rui314/mold/blob/main/docs/mold.md) has --print-dependencies flag, which is useful for analyzing file to file or function to function dependencies. An example use case of the flag is to build a dependency graph and mechanically detect unused files/functions.

I'd appreciate it if lld supports the equivalent functionality. I could use mold, but my project doesn't/won't officially support it, so using it is risky.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8ks9upDgQxp_GXEqNoIB094FDb1pIkXLbJzB2AbUxNus_ybJPPzLpTOYwmpMNdn3fr8qfDIFnS9SL7i_R3QuZ4uJ872amN_nmitHpPZ-tzmjR3QVelhi3IJqbwEHgMHNc0lgqtwocfOKmbgUOx20cRuPG_CXZChy0U-FxVq5a4BUWGeB02jzbeNK0kdVkFVOAychZ4DN8LKwW4AAp0JQMTM6DtNLs_7OdYWJDEN3n6jxMyarIzh7_vva_6pZws0D_yXUzlCVByUDgJogLHZ7ZKjoYExsN8rt2h9nLbQFpNaykFmlZSWN20BRJRUg2BdIHSG7xyzyUorqJ6vYi8KxBbpsnxTIScASewBgNIW2b8zEcCPRv4ndpyMaf_NJw3Et4AeWS0Qf053CfYUwR1h027_7JDNpRsALPUeDw4Y4duGlixQfpwwg45trgIIU8w0wSwHN42zNsoftGX5urLKivz219rS8NVsXSTy1dkLqR5Ni0eO7UE3UXRU2ln6YnLceCe6ywq5q6rbDGqiqbsarqrpnUdFFXPF9EW9Eq2ZTGvK-l83PBISTq66bGrimMHMmEI4aIJneIOY--z9dPY5qDaCvDIYZvgcjRHMl9fb2L7g5_P3r8XaaK5E3_h-xm0cdyeoxU4HAg5id9UL73-CMAAP__enkSbA">