summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-04 17:02:51 +0000
committerChris Lattner <sabre@nondot.org>2006-05-04 17:02:51 +0000
commit15c52bda1d13344581ae684e2b02c7dbe4f32979 (patch)
tree6f0c0040cbba812e0d71f6623795068d3c2ed23a /llvm/lib/CodeGen/MachineInstr.cpp
parent13d5f3eb05ee9e161e920d17e960636358b3c050 (diff)
downloadbcm5719-llvm-15c52bda1d13344581ae684e2b02c7dbe4f32979.tar.gz
bcm5719-llvm-15c52bda1d13344581ae684e2b02c7dbe4f32979.zip
Change "value" in MachineOperand to be a GlobalValue, as that is the only
thing that can be in it. Remove a dead method. llvm-svn: 28098
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index e300993a10f..dad1e1f2e78 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -107,33 +107,22 @@ bool MachineInstr::OperandsComplete() const {
return false;
}
-void MachineInstr::SetMachineOperandVal(unsigned i,
- MachineOperand::MachineOperandType opTy,
- Value* V) {
- assert(i < operands.size()); // may be explicit or implicit op
- operands[i].opType = opTy;
- operands[i].contents.value = V;
- operands[i].extra.regNum = -1;
-}
-
void
MachineInstr::SetMachineOperandConst(unsigned i,
MachineOperand::MachineOperandType opTy,
int intValue) {
- assert(i < getNumOperands()); // must be explicit op
-
+ assert(i < getNumOperands());
operands[i].opType = opTy;
- operands[i].contents.value = NULL;
operands[i].contents.immedVal = intValue;
operands[i].extra.regNum = -1;
operands[i].flags = 0;
}
void MachineInstr::SetMachineOperandReg(unsigned i, int regNum) {
- assert(i < getNumOperands()); // must be explicit op
+ assert(i < getNumOperands());
operands[i].opType = MachineOperand::MO_VirtualRegister;
- operands[i].contents.value = NULL;
+ operands[i].contents.GV = NULL;
operands[i].extra.regNum = regNum;
}
OpenPOWER on IntegriCloud