aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-14 06:07:58 +0000
committerChris Lattner <sabre@nondot.org>2001-07-14 06:07:58 +0000
commitdc4c3f2f5fc6132885d590631b54de0be2c659be (patch)
tree9d7577e07b0c344e83f9e36f0e19c1d7a106830e /include/llvm/Module.h
parent49fec9638be606ab0d654bf5b03f56d179f0d33e (diff)
Made the following changes:
* ValueHolder became a 3 argument template. This allows for BasicBlock to use the value holder arg as a typesafe parent pointer. * SymTabValue no longer inherits from Value * Method does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Module does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Updated the SymTabValue.h file to reference SymTabValue instead of STDef in several places * Added isArraySelector & isStructSelector to GetElementPtr instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index d02b3a050e..740a8879b6 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -8,12 +8,13 @@
#ifndef LLVM_MODULE_H
#define LLVM_MODULE_H
+#include "llvm/Value.h"
#include "llvm/SymTabValue.h"
class Method;
-class Module : public SymTabValue {
+class Module : public Value, public SymTabValue {
public:
- typedef ValueHolder<Method, Module> MethodListType;
+ typedef ValueHolder<Method, Module, Module> MethodListType;
// Method iterators...
typedef MethodListType::iterator iterator;