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
This commit is contained in:
Chris Lattner
2001-07-14 06:07:58 +00:00
parent 49fec9638b
commit dc4c3f2f5f
12 changed files with 78 additions and 54 deletions

View File

@@ -10,14 +10,14 @@
#include <vector>
#include "llvm/ValueHolder.h"
class ConstPoolVal;
class SymTabValue;
class ConstPoolVal;
class Type;
class Value;
class ConstantPool {
public:
typedef ValueHolder<ConstPoolVal, SymTabValue> PlaneType;
typedef ValueHolder<ConstPoolVal, SymTabValue, SymTabValue> PlaneType;
private:
typedef vector<PlaneType*> PlanesType;
PlanesType Planes;
@@ -30,6 +30,8 @@ public:
inline SymTabValue *getParent() { return Parent; }
inline const SymTabValue *getParent() const { return Parent; }
const Value *getParentV() const;
Value *getParentV() ;
void setParent(SymTabValue *STV);