[PATCH] [DOCS] LangRef references undefined variable in sample code

Mikael Lyngvig mikael at lyngvig.org
Sun Dec 1 09:57:18 PST 2013


This patch basically rephrases the passage so that it does not reference an
undefined variable (probably some left-over from an ancient change):

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

-For example, since the "``.LC0``" variable is defined to be internal, if
-another module defined a "``.LC0``" variable and was linked with this
-one, one of the two would be renamed, preventing a collision. Since
+For example, if the "``.LC0``" variable is defined to be internal and
+another module defines a "``.LC0``" variable and is linked with this
+one, one of the two will be renamed, preventing a collision. Since
 "``main``" and "``puts``" are external (i.e., lacking any linkage
 declarations), they are accessible outside of the current module.


-- Mikael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131201/1bd9b212/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LangRef-missing-variable.patch
Type: application/octet-stream
Size: 839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131201/1bd9b212/attachment.obj>


More information about the llvm-commits mailing list