LLD: TargetInfo constness

Rui Ueyama ruiu at google.com
Sun Jul 21 16:55:05 PDT 2013


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
http://llvm-reviews.chandlerc.com/D833, but at that time we didn't reach a
conclusion.

It appears to me that there are two choices to handle it.

1. Treat TargetInfo as a mutable object
It's a simple solution, but we will lose reusability of TargetInfo.

2. Make TagetInfo clonable
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.

I'm inclined to choice 1, for choice 2 seems to need too much work. What do
you guys think?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130721/294bfb6f/attachment.html>


More information about the llvm-commits mailing list