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 | 5760c5042c36a77f0a162e38bbbffe923b19149c (patch) | |
| tree | 484cae6284f8fd2e9db537367974eb4769ad93e0 /llvm | |
| parent | 5544e17a084b6fc6c7f043f95d6c1b9030465823 (diff) | |
| download | bcm5719-llvm-5760c5042c36a77f0a162e38bbbffe923b19149c.tar.gz bcm5719-llvm-5760c5042c36a77f0a162e38bbbffe923b19149c.zip | |
add a global variable example
llvm-svn: 33190
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/docs/LangRef.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 2e40842dfb1..bbc06116f81 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/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> |

