<div dir="ltr">I think we've now got to the point where we should revisit the topic about how to handle linker directives embedded in the input file for further development of the lld linker. We had a discussion in May for <a href="http://llvm-reviews.chandlerc.com/D833" target="_blank">http://llvm-reviews.chandlerc.com/D833</a>, but at that time we didn't reach a conclusion.<div>

<br></div><div>It appears to me that there are two choices to handle it.</div><div><br></div><div><div>1. Treat TargetInfo as a mutable object</div><div>It's a simple solution, but we will lose reusability of TargetInfo.</div>

<div><br></div><div>2. Make TagetInfo clonable</div><div>Make a copy of a TagetInfo in the core linker and use it internally. It probably needs large refactoring of TargetInfo because the class currently has many non-copyable members.</div>

</div><div><br></div><div>I'm inclined to choice 1, for choice 2 seems to need too much work. What do you guys think?</div></div>