I've been doing a bit of toying around with the IR bytecode in llvm and didn't find an obvious command line utility to incrementally link objects and archives.<div><br></div><div>Thus, the attached patch was born.</div>
<div><br></div><div>It adds a command line option -a to llvm-link.  The archive is opened and modules are linked, one at a time, after all object files have been linked first.<br clear="all"><div><br></div><div>I'm still new to llvm so my apologies if this could have been written better :)</div>
<div><br></div>Charles
</div>