From 68027ea618e3d632a11e8637c00d8a39bf97a3c8 Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Sun, 14 Jan 2007 00:27:09 +0000
Subject: [PATCH] add a global variable example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33190 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/LangRef.html | 7 +++++++
1 file changed, 7 insertions(+)
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
+
+