summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-14 00:27:09 +0000
committerChris Lattner <sabre@nondot.org>2007-01-14 00:27:09 +0000
commit68027ea618e3d632a11e8637c00d8a39bf97a3c8 (patch)
tree26eb0f7492a5b24995aa741d7622b82473e238b8 /docs
parent32c9a4527d77403598ca69886edffba0c922a1b5 (diff)
downloadllvm-68027ea618e3d632a11e8637c00d8a39bf97a3c8.tar.gz
llvm-68027ea618e3d632a11e8637c00d8a39bf97a3c8.tar.bz2
llvm-68027ea618e3d632a11e8637c00d8a39bf97a3c8.tar.xz
add a global variable example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 2e40842dfb..bbc06116f8 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.</p>
+<p>For example, the following defines a global with an initializer, section,
+ and alignment:</p>
+
+<pre>
+ %G = constant float 1.0, section "foo", align 4
+</pre>
+
</div>