From: Bob Wilson Date: Thu, 12 Jun 2014 18:42:55 +0000 (+0000) Subject: Add missing "InitializerConstant" to global variable syntax in LangRef. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7c3436d9411f96d39b7de17d997289893c330d44;p=oota-llvm.git 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 --- diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 213b99aa456..434bcbe6655 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -589,8 +589,8 @@ Syntax:: [@ =] [Linkage] [Visibility] [DLLStorageClass] [ThreadLocal] [unnamed_addr] [AddrSpace] [ExternallyInitialized] - - [, section "name"] [, align ] + [ + [, section "name"] [, align ]] For example, the following defines a global in a numbered address space with an initializer, section, and alignment: