diff options
author | Bob Wilson <bob.wilson@apple.com> | 2014-06-12 18:42:55 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2014-06-12 18:42:55 +0000 |
commit | 6823a0b6781b92861ce5c83aed696b2c71979d3c (patch) | |
tree | ec8551e88845e6a9f492660a2993021531bb95f6 | |
parent | dc6de2ce29aa39decb72a5b35cf5bc28dba32992 (diff) | |
download | bcm5719-llvm-6823a0b6781b92861ce5c83aed696b2c71979d3c.tar.gz bcm5719-llvm-6823a0b6781b92861ce5c83aed696b2c71979d3c.zip |
Add missing "InitializerConstant" to global variable syntax in LangRef.
The syntax for Global Variables in LangRef is missing the initializer.
This syntax section was added in r199218 along with changes to the
dllexport/dllimport handling, and I guess it was just an oversight to omit the
initializer values. I’ve marked the initializer as optional because this syntax
is used for both declarations and definitions.
llvm-svn: 210808
-rw-r--r-- | llvm/docs/LangRef.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 213b99aa456..434bcbe6655 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -589,8 +589,8 @@ Syntax:: [@<GlobalVarName> =] [Linkage] [Visibility] [DLLStorageClass] [ThreadLocal] [unnamed_addr] [AddrSpace] [ExternallyInitialized] - <global | constant> <Type> - [, section "name"] [, align <Alignment>] + <global | constant> <Type> [<InitializerConstant> + [, section "name"] [, align <Alignment>]] For example, the following defines a global in a numbered address space with an initializer, section, and alignment: |