<div dir="ltr">r196342<div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 9:07 PM, Mikael Lyngvig <span dir="ltr"><<a href="mailto:mikael@lyngvig.org" target="_blank">mikael@lyngvig.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, I supposed the .LC0 thing was a leftover from an ancient version of the code sample.  Here's a patch that erases the entire paragraph:<div>
<br></div><div><div>Index: LangRef.rst</div><div>===================================================================</div>
<div>--- LangRef.rst (revision 196340)</div><div>+++ LangRef.rst (working copy)</div><div>@@ -291,12 +291,6 @@</div><div class="im"><div>     name is formed by combining ``__imp_`` and the function or variable</div><div>
     name.</div><div>
<br></div><div>-For example, since the "``.LC0``" variable is defined to be internal, if</div><div>-another module defined a "``.LC0``" variable and was linked with this</div><div>-one, one of the two would be renamed, preventing a collision. Since</div>

</div><div>-"``main``" and "``puts``" are external (i.e., lacking any linkage</div><div>-declarations), they are accessible outside of the current module.</div><div>-</div><div> It is illegal for a function *declaration* to have any linkage type</div>

<div> other than ``external``, ``dllimport`` or ``extern_weak``.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br></div><div>-- Mikael</div></font></span></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/4 Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This doesn't really help. The paragraph still doesn't make any sense. ("For example, ..."--- example of what?). I'm not sure what the right fix is. There does seem to be a code example just above in "Module Structure" that has `main` and `puts` though. The best thing is probably to just delete this paragraph.<div>


<br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 1, 2013 at 12:57 PM, Mikael Lyngvig <span dir="ltr"><<a href="mailto:mikael@lyngvig.org" target="_blank">mikael@lyngvig.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This patch basically rephrases the passage so that it does not reference an undefined variable (probably some left-over from an ancient change):<div>


<br></div><div><div>diff --git a/docs/LangRef.rst b/docs/LangRef.rst</div>
<div>index 810455c..e434431 100644</div><div>--- a/docs/LangRef.rst</div><div>+++ b/docs/LangRef.rst</div><div>@@ -291,9 +291,9 @@ symbols from (to) DLLs (Dynamic Link Libraries).</div><div>     name is formed by combining ``__imp_`` and the function or variable</div>



<div>     name.</div><div><br></div><div>-For example, since the "``.LC0``" variable is defined to be internal, if</div><div>-another module defined a "``.LC0``" variable and was linked with this</div>



<div>-one, one of the two would be renamed, preventing a collision. Since</div><div>+For example, if the "``.LC0``" variable is defined to be internal and</div><div>+another module defines a "``.LC0``" variable and is linked with this</div>



<div>+one, one of the two will be renamed, preventing a collision. Since</div><div> "``main``" and "``puts``" are external (i.e., lacking any linkage</div><div> declarations), they are accessible outside of the current module.</div>


<span><font color="#888888">
</font></span></div><span><font color="#888888"><div><br></div><div><br></div><div>-- Mikael</div></font></span></div>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>