mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
Remove a dead method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
Value *BytecodeParser::getValue(const Type *Ty, unsigned oNum, bool Create) {
|
||||||
return getValue(getTypeSlot(Ty), oNum, Create);
|
return getValue(getTypeSlot(Ty), oNum, Create);
|
||||||
}
|
}
|
||||||
|
@@ -186,7 +186,6 @@ private:
|
|||||||
Constant *getConstantValue(const Type *Ty, unsigned num);
|
Constant *getConstantValue(const Type *Ty, unsigned num);
|
||||||
|
|
||||||
int insertValue(Value *V, ValueTable &Table); // -1 = Failure
|
int insertValue(Value *V, ValueTable &Table); // -1 = Failure
|
||||||
void setValueTo(ValueTable &D, unsigned Slot, Value *V);
|
|
||||||
|
|
||||||
unsigned getTypeSlot(const Type *Ty);
|
unsigned getTypeSlot(const Type *Ty);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user