aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Function.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/Function.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/Function.h')
-rw-r--r--include/llvm/Function.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index b7aa855b2c..349dd61a84 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -21,10 +21,10 @@ class MethodArgument;
class MethodType;
class Module;
-class Method : public SymTabValue {
+class Method : public Value, public SymTabValue {
public:
- typedef ValueHolder<MethodArgument, Method> ArgumentListType;
- typedef ValueHolder<BasicBlock , Method> BasicBlocksType;
+ typedef ValueHolder<MethodArgument, Method, Method> ArgumentListType;
+ typedef ValueHolder<BasicBlock , Method, Method> BasicBlocksType;
// BasicBlock iterators...
typedef BasicBlocksType::iterator iterator;
@@ -40,7 +40,7 @@ private:
Module *Parent; // The module that contains this method
- friend class ValueHolder<Method,Module>;
+ friend class ValueHolder<Method,Module, Module>;
void setParent(Module *parent);
public: