Remove a dead method
authorChris Lattner <sabre@nondot.org>
Thu, 9 Oct 2003 05:25:34 +0000 (05:25 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 9 Oct 2003 05:25:34 +0000 (05:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8978 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp
lib/Bytecode/Reader/ReaderInternals.h

index af775d282a4c00896763d8de1bb89e592da892a4..66111dd93d0d187bc44afbdeb42a1905c798784a 100644 (file)
@@ -102,17 +102,6 @@ int BytecodeParser::insertValue(Value *Val, ValueTable &ValueTab) {
 }
 
 
-void BytecodeParser::setValueTo(ValueTable &ValueTab, unsigned Slot,
-                                Value *Val) {
-  assert(&ValueTab == &ModuleValues && "Can only setValueTo on Module values!");
-  assert((!HasImplicitZeroInitializer || Slot != 0) &&
-         "Cannot change zero init");
-  unsigned type = getTypeSlot(Val->getType());
-  assert(type < ValueTab.size() && Slot <= ValueTab[type]->size());
-  ValueTab[type]->setOperand(Slot-HasImplicitZeroInitializer, Val);
-}
-
-
 Value *BytecodeParser::getValue(const Type *Ty, unsigned oNum, bool Create) {
   return getValue(getTypeSlot(Ty), oNum, Create);
 }
index b0c7abfff67da219c9b7f29c12ea1445f0f19234..58ad8df8cebaccc0bb4990a51dba769d153ef394 100644 (file)
@@ -186,7 +186,6 @@ private:
   Constant   *getConstantValue(const Type *Ty, unsigned num);
 
   int insertValue(Value *V, ValueTable &Table);  // -1 = Failure
-  void setValueTo(ValueTable &D, unsigned Slot, Value *V);
 
   unsigned getTypeSlot(const Type *Ty);