summaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commitceb408f6a263e319683209ae5c6f8d1e3e4d9b69 (patch)
tree39deab158d7deec11f5cee07b3d528378766a932 /lib/CodeGen
parente45aa737ba902a5caf2f259b3116bfc7d29b2990 (diff)
downloadllvm-ceb408f6a263e319683209ae5c6f8d1e3e4d9b69.tar.gz
llvm-ceb408f6a263e319683209ae5c6f8d1e3e4d9b69.tar.bz2
llvm-ceb408f6a263e319683209ae5c6f8d1e3e4d9b69.tar.xz
Change "value" in MachineOperand to be a GlobalValue, as that is the only
thing that can be in it. Remove a dead method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineInstr.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index e300993a10..dad1e1f2e7 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/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;
}