aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-09 05:25:34 +0000
committerChris Lattner <sabre@nondot.org>2003-10-09 05:25:34 +0000
commit13eb87162aea5e19ddfddebb16a3bdf074e48dbd (patch)
treeb74694031acb68fb86f4e81fff3e44d68cdcdecc /lib/Bytecode
parent4ee8ef2a5d5a28cf5255b986d57dc658fa060479 (diff)
Remove a dead method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp11
-rw-r--r--lib/Bytecode/Reader/ReaderInternals.h1
2 files changed, 0 insertions, 12 deletions
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);
}
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h
index b0c7abfff6..58ad8df8ce 100644
--- a/lib/Bytecode/Reader/ReaderInternals.h
+++ b/lib/Bytecode/Reader/ReaderInternals.h
@@ -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);