diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-14 06:13:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-14 06:13:19 +0000 |
commit | f2a738cfe265970525a95f01167b40b34bb08dde (patch) | |
tree | 06254d74463e56833802db8e62a77c3b3ee22137 /llvm/lib/VMCore/Value.cpp | |
parent | 5451c9e977690c73a67b0fb44ea84a2e18112d47 (diff) | |
download | bcm5719-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/Value.cpp')
-rw-r--r-- | llvm/lib/VMCore/Value.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index a051bcb3cc6..48f9347f962 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -106,10 +106,10 @@ void User::replaceUsesOfWith(Value *From, Value *To) { // Instantiate Templates - This ugliness is the price we have to pay // for having a ValueHolderImpl.h file seperate from ValueHolder.h! :( // -template class ValueHolder<ConstPoolVal, SymTabValue>; +template class ValueHolder<ConstPoolVal, SymTabValue, SymTabValue>; -SymTabValue::SymTabValue(const Type *Ty, ValueTy dty, const string &name = "") - : Value(Ty, dty, name), ConstPool(this) { +SymTabValue::SymTabValue(Value *p) : ConstPool(this), ValueParent(p) { + assert(ValueParent && "SymTavValue without parent!?!"); ParentSymTab = SymTab = 0; } |