llvm.org GIT mirror llvm / 7c3436d
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 Bob Wilson 5 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
589589 [@ =] [Linkage] [Visibility] [DLLStorageClass] [ThreadLocal]
590590 [unnamed_addr] [AddrSpace] [ExternallyInitialized]
592 [, section "name"] [, align ]
591 [
592 [, section "name"] [, align ]]
594594 For example, the following defines a global in a numbered address space
595595 with an initializer, section, and alignment: