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

    <tr>
        <th>Summary</th>
        <td>
            Linking object files from LLVM API C++ code
        </td>
    </tr>

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

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

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

<pre>
    Hi, until now I am linking an object file "DemoApplication.o" generated from LLVM IR code with e.g. the following console call:

`clang++ -g -O3 DemoApplication.o `llvm-config --cxxflags --ldflags --system-libs --libs all` -o DemoApplication`

But I would like to do this by the LLVM API now, but can't figure out how. Can you give me a hint what to do? Which classes should I use?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkksGOmzAQhp_GXEYgYweSHDhsdkUbaatWPbRnYwbbXeOJsL3ZvH0F3VWj9sIgS_5n5vOnYnQmIHasObHmqVA5WVq6T26IFA5NMdB46z47Jh4hh-Q8BLrCGdQM3oUXFwyoADT8Qp1gch6BCfGEMz1cLt5plRyFipgQYDDgohKOMC00w_Pzjy9w_g6aRoSrSxawMhUkizCR93RdozWFSB5BK--ZfGD8ifGPb8u1V8EwcWLiBKWB8quE_zoDa7n3r3OpKUzOQFnqt7fJKxOhLP348RdvMeFcejds52tZW7YcSvo3lLX8fpBTTnCGK2U_gncvCIlgJEjWRRhu20Lbrg_fziu7FeSQE2gVmNivzExeECgnsHSt4FEFuFEG414RZgQF1oUEV6vSn2Qme_hpnbagvYoRI0S7NT9DjshkX4ydHI_yqArs6vYg9w3nsi5sJ1GNchBtfWj0hPVQq2na8_Zw3OtGaikL1wkuJG9qLrjgsq6Go-RaKzzulJz4_sh2HGflfLUirWgxhYsxY9eKdicLrwb08UOkpdu4D9lEtuPexRT_Xksueeye3w260yfe2bESe3x_31WTIi--syld4uqC6JnojUs2D5WmmYl-TX8v5WWhNZOJfpswMtFvQ_4OAAD__30d8eY">