<div dir="ltr"><div>--force_load seems to be an equivalent to --whole-archive, but I just found that the field you just added is not really used at all.</div><div><br></div><div>Did you forget to add the following code to use the field?</div>

<div><br></div><div>--- a/lib/Driver/DarwinLdDriver.cpp</div><div>+++ b/lib/Driver/DarwinLdDriver.cpp</div><div>@@ -75,7 +75,7 @@ MachOFileNode::createLinkerInput(const LinkingContext &ctx) {</div><div>   auto inputFile(FileNode::createLinkerInput(ctx));</div>

<div> </div><div>   if (inputFile)</div><div>-    (*inputFile)->setWholeArchive(false);</div><div>+    (*inputFile)->setWholeArchive(_isWholeArchive);</div><div>   return std::move(inputFile);</div><div> }</div><div>

<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 11:33 AM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Sep 09, 2013 at 11:28:44AM -0700, Rui Ueyama wrote:<br>
><br>
><br>
> ================<br>
> Comment at: include/lld/Driver/DarwinInputGraph.h:52<br>
> @@ -48,2 +51,3 @@<br>
>    const MachOLinkingContext &_ctx;<br>
> +  bool _isWholeArchive;<br>
>  };<br>
> ----------------<br>
> This change caused the compiler to warn if -Wunused-private-field is enabled. I'm going to remove this  line for now for those who enabled -Werror.<br>
<br>
</div>Doesn't Darwin have an equivalent to --whole-archive? -force_load or so<br>
with corresponding no option?<br>
<span class="HOEnZb"><font color="#888888"><br>
Joerg<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>