aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-10 07:58:01 +0000
committerChris Lattner <sabre@nondot.org>2001-09-10 07:58:01 +0000
commit70cc3397f84c2e1fd69c059a0ef89e398e847b00 (patch)
treeca2156daf75e4abf788d92925bdce4063da36e58 /include/llvm/Value.h
parent7720c8e1a7a252e983e3f3e7f841d7901dfea80c (diff)
downloadexternal_llvm-70cc3397f84c2e1fd69c059a0ef89e398e847b00.zip
external_llvm-70cc3397f84c2e1fd69c059a0ef89e398e847b00.tar.gz
external_llvm-70cc3397f84c2e1fd69c059a0ef89e398e847b00.tar.bz2
Implement global variable support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 889551d..dd97d35 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -19,6 +19,7 @@ class MethodArgument;
class Instruction;
class BasicBlock;
class Method;
+class GlobalVariable;
class Module;
class SymbolTable;
template<class ValueSubclass, class ItemParentType, class SymTabType>
@@ -36,9 +37,9 @@ public:
ConstantVal, // This is an instance of ConstPoolVal
MethodArgumentVal, // This is an instance of MethodArgument
InstructionVal, // This is an instance of Instruction
-
BasicBlockVal, // This is an instance of BasicBlock
MethodVal, // This is an instance of Method
+ GlobalVal, // This is an instance of GlobalVariable
ModuleVal, // This is an instance of Module
};
@@ -102,6 +103,7 @@ public:
CAST_FN(Instruction , Instruction )
CAST_FN(BasicBlock , BasicBlock )
CAST_FN(Method , Method )
+ CAST_FN(Global , GlobalVariable)
CAST_FN(Module , Module )
#undef CAST_FN