From 5760c5042c36a77f0a162e38bbbffe923b19149c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Jan 2007 00:27:09 +0000 Subject: add a global variable example llvm-svn: 33190 --- llvm/docs/LangRef.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/docs/LangRef.html') 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.

+

For example, the following defines a global with an initializer, section, + and alignment:

+ +
+  %G = constant float 1.0, section "foo", align 4
+
+ -- cgit v1.2.3