summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-14 06:13:19 +0000
committerChris Lattner <sabre@nondot.org>2001-07-14 06:13:19 +0000
commitf2a738cfe265970525a95f01167b40b34bb08dde (patch)
tree06254d74463e56833802db8e62a77c3b3ee22137 /llvm/lib/VMCore/BasicBlock.cpp
parent5451c9e977690c73a67b0fb44ea84a2e18112d47 (diff)
downloadbcm5719-llvm-f2a738cfe265970525a95f01167b40b34bb08dde.tar.gz
bcm5719-llvm-f2a738cfe265970525a95f01167b40b34bb08dde.zip
* 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 llvm-svn: 184
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r--llvm/lib/VMCore/BasicBlock.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp
index 8fee4eff587..04941075e3e 100644
--- a/llvm/lib/VMCore/BasicBlock.cpp
+++ b/llvm/lib/VMCore/BasicBlock.cpp
@@ -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() {
OpenPOWER on IntegriCloud