diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-04 17:52:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-04 17:52:23 +0000 |
commit | 10d6341618d792accb16a959a8481cbed4c7daec (patch) | |
tree | f46455c3468146bd3a6f81f1585e38d70a8ae610 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | fb2969205596dd8f0c5995e446f01a7b918fa4cf (diff) | |
download | bcm5719-llvm-10d6341618d792accb16a959a8481cbed4c7daec.tar.gz bcm5719-llvm-10d6341618d792accb16a959a8481cbed4c7daec.zip |
Move some methods out of MachineInstr into MachineOperand
llvm-svn: 28102
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 90cec5a0a0f..b1fb52a13a5 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -107,25 +107,6 @@ bool MachineInstr::OperandsComplete() const { return false; } -void -MachineInstr::SetMachineOperandConst(unsigned i, - MachineOperand::MachineOperandType opTy, - int intValue) { - assert(i < getNumOperands()); - operands[i].opType = opTy; - operands[i].contents.immedVal = intValue; - operands[i].extra.regNum = -1; - operands[i].flags = 0; -} - -void MachineInstr::SetMachineOperandReg(unsigned i, int regNum) { - assert(i < getNumOperands()); - - operands[i].opType = MachineOperand::MO_VirtualRegister; - operands[i].contents.GV = NULL; - operands[i].extra.regNum = regNum; -} - void MachineInstr::dump() const { std::cerr << " " << *this; } |