diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-14 00:27:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-14 00:27:09 +0000 |
commit | 68027ea618e3d632a11e8637c00d8a39bf97a3c8 (patch) | |
tree | 26eb0f7492a5b24995aa741d7622b82473e238b8 | |
parent | 32c9a4527d77403598ca69886edffba0c922a1b5 (diff) |
add a global variable example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33190 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/LangRef.html | 7 |
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> |