From 68a0969b7ca246052e236a1944522769a6cb027d Mon Sep 17 00:00:00 2001
From: Reid Spencer
Date: Sun, 18 Jul 2004 13:10:31 +0000
Subject: [PATCH] bug 122: Updated to remove references to ConstantPointerRef
and reflect the change in the inheritance hierarchy: GlobalValue now derives
from Constant.
llvm-svn: 14969
---
docs/ProgrammersManual.html | 35 ++++++++++++++++++-----------------
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index 741d66b3868..9ba37aabb2a 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -89,15 +89,18 @@ with another Value
The GetElementPtrInst
class
- The GlobalValue class
-
The Module class
- The Constant class
+ The Constant class
+
+
The Type class
The Argument class
@@ -1258,7 +1261,7 @@ Because they are visible at global scope, they are also subject to linking with
other globals defined in different translation units. To control the linking
process, GlobalValues know their linkage rules. Specifically,
GlobalValues know whether they have internal or external linkage, as
-defined by the LinkageTypes enumerator.
+defined by the LinkageTypes enumeration.
If a GlobalValue has internal linkage (equivalent to being
static in C), it is not visible to code outside the current translation
@@ -1353,6 +1356,9 @@ href="#Instruction">Instructions, BasicBlocks, or Arguments in the function body.
+Note that Function is a GlobalValue
+and therefore also a Constant. The value of the function
+is its address (after linking) which is guaranteed to be constant.
@@ -1698,18 +1704,13 @@ Returns a Vecotr of component constants that makeup this array.
Returns a Vecotr of component constants that makeup this array.
- ConstantPointerRef : This represents a constant pointer value
-that is initialized to point to a global value, which lies at a
-constant fixed address.
-
- - GlobalValue *getValue(): Returns the global
-value to which this pointer is pointing to.
-
+ GlobalValue : This represents either a global variable or a
+ function. In either case, the value is a constant fixed address
+ (after linking).
-