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 | 7c3436d9411f96d39b7de17d997289893c330d44 (patch) | |
tree | 354ff81bae078917ee0bd936af26aba70f1c0631 | |
parent | 26278061eefca54faed2759512deb932bdb296ec (diff) | |
download | llvm-7c3436d9411f96d39b7de17d997289893c330d44.tar.gz llvm-7c3436d9411f96d39b7de17d997289893c330d44.tar.bz2 llvm-7c3436d9411f96d39b7de17d997289893c330d44.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210808 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/LangRef.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 213b99aa45..434bcbe665 100644 --- a/docs/LangRef.rst +++ b/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: |