From 13eb87162aea5e19ddfddebb16a3bdf074e48dbd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 9 Oct 2003 05:25:34 +0000 Subject: Remove a dead method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8978 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/Bytecode/Reader/Reader.cpp') diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index af775d282a..66111dd93d 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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); } -- cgit v1.2.3