* ValueHolder now takes 3 arguments

* Added a few methods to ConstantPool
* ConstPoolVal no longer derives from Value
* Method & Module multiply inherit from SymTabValue & Value now
* Added a GetElementPtrInst::isStructSelector() method


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-07-14 06:13:19 +00:00
parent 3b7bfdb201
commit a3d3c2b645
6 changed files with 20 additions and 13 deletions
+4 -5
View File
@@ -17,13 +17,12 @@
// Instantiate Templates - This ugliness is the price we have to pay
// for having a ValueHolderImpl.h file seperate from ValueHolder.h! :(
//
template class ValueHolder<Instruction, BasicBlock>;
template class ValueHolder<Instruction, BasicBlock, Method>;
BasicBlock::BasicBlock(const string &name, Method *parent)
BasicBlock::BasicBlock(const string &name, Method *Parent)
: Value(Type::LabelTy, Value::BasicBlockVal, name), InstList(this, 0) {
if (parent)
parent->getBasicBlocks().push_back(this);
if (Parent)
Parent->getBasicBlocks().push_back(this);
}
BasicBlock::~BasicBlock() {