From: Chris Lattner
Date: Sun, 14 Jan 2007 00:27:09 +0000 (+0000)
Subject: add a global variable example
X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=68027ea618e3d632a11e8637c00d8a39bf97a3c8;p=oota-llvm.git
add a global variable example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33190 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 2e40842dfb1..bbc06116f81 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -616,6 +616,13 @@ to whatever it feels convenient. If an explicit alignment is specified, the
global is forced to have at least that much alignment. All alignments must be
a power of 2.
+For example, the following defines a global with an initializer, section,
+ and alignment:
+
+
+ %G = constant float 1.0, section "foo", align 4
+
+