<div dir="ltr">The first question is that Group is to represent --start-group/--end-group?<div><br></div><div>If I understand your proposal correctly, here's the thing: if file is not in group, each individual file is wrapped with LinkerInput, but if it's in a group, it's not -- instead the entire group is wrapped with a LinkerInput. This asymmetry is a bit concerning. If we don't need a LinkerInput for each individual input file, we could get rid of it from the former case. Otherwise, I'd think we need LinkerInput in the latter case.</div>

<div><br></div><div>For example, if the following command line options are given, how it's represented with LinkerInput, Group and File?</div><div><br></div><div> --start-group foo.a --as-needed bar.a --no-as-needed --end-group<br>

<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 1:42 PM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
With the inputGraph now, lld models command line options, input files as nodes in the InputGraph called InputElements.<br>
<br>
In the current approach, each InputElement is converted to a LinkerInput, which works if all lld deals with individual files.<br>
<br>
Dealing with ControlNodes (Groups), have a problem with it, on how to model that as a LinkerInput.<br>
<br>
Joerg/Me were chatting on the IRC about this and we came up with the following approach.<br>
<br>
- LinkerInput will contain a single file(lld::File), if the node that its pointing to appears to be a FileNode<br>
- LinkerInput will contain a vector(lld::Group) of files(lld::Files) , if the node that its pointing appears to be a Group<br>
<br>
The resolver would need to be modified to consider lld::Groups in addition to lld::File.<br>
<br>
Does this sound like the approach we want to take ?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
Shankar Easwaran<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
</font></span></blockquote></div><br></div></div></div>