<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 25, 2014 at 12:33 PM, Artyom Skrobov <span dir="ltr"><<a href="mailto:Artyom.Skrobov@arm.com" target="_blank">Artyom.Skrobov@arm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">> Our documentation is not very good surrounding some of these larger<br>

> architectural issues. However, I can tell you with certainty that<br>
> this patch is unacceptable in it's current state. Revert it.<br>
><br>
> As David said, it violates a fundamental invariant of the LLVM<br>
> codebase, which is that library users in the same process can<br>
> independently use the LLVM library. (There are some unfortunate<br>
> historical deviations from this that are being slowly mended,<br>
> but going new code doesn't regress on this: it's not up for debate).<br>
<br>
</div>Reverted as r200083, but I'd still appreciate any hints as to what can be an<br>
acceptable solution to the issue at hand (preventing the same warning from<br>
being reported multiple times from multiple calling points).<br>
<br>
If the documentation doesn't guide around these larger architectural issues,<br>
and the existing code cannot be trusted as an example to follow, then the<br>
only remaining option I can see is to submit patches at random, until one of<br>
them gets accepted.<br>
<br></blockquote><div><br></div><div>Well, there aren't very many things like this to trip over; like I said, this is a pretty big issue: it's the "modular and reusable" in the description of LLVM on the LLVM homepage. I wouldn't be able to so confidently ask you to revert this if I wasn't sure that this is a major principle that covers all the LLVM libraries. It's unlikely that you are going to run into another issue like this, so keep sending the patches :)</div>
<div><br></div><div>However, if you do want a reason in the documentation that this patch doesn't abide by, this is probably enough to disqualify the patch <<a href="http://llvm.org/docs/CodingStandards.html#do-not-use-static-constructors">http://llvm.org/docs/CodingStandards.html#do-not-use-static-constructors</a>> (unless the SmallSet constructor is trivial).</div>
<div><br></div><div>-- Sean Silva</div><div> </div></div><br></div></div>