summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstSelectSimple.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-22 19:23:26 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-22 19:23:26 +0000
commit8358cc573de46e1e8620ad3b1fc5f8f1d12e347a (patch)
tree4ec0b5561047b618cd3c1c2b862e3fac856a4d58 /llvm/lib/Target/X86/InstSelectSimple.cpp
parent84b406650e89e9931954a9937ff75732e72023f4 (diff)
downloadbcm5719-llvm-8358cc573de46e1e8620ad3b1fc5f8f1d12e347a.tar.gz
bcm5719-llvm-8358cc573de46e1e8620ad3b1fc5f8f1d12e347a.zip
Move MOTy::UseType enum into MachineOperand. This eliminates the
switch statements in the constructors and simplifies the implementation of the getUseType() member function. You will have to specify defs using MachineOperand::Def instead of MOTy::Def though (similarly for Use and UseAndDef). llvm-svn: 11715
Diffstat (limited to 'llvm/lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index b8873284c07..e216f9da609 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -43,7 +43,7 @@ inline static MachineInstrBuilder BMI(MachineBasicBlock *MBB,
unsigned DestReg) {
MachineInstr *MI = new MachineInstr(Opcode, NumOperands+1, true, true);
MBB->insert(I, MI);
- return MachineInstrBuilder(MI).addReg(DestReg, MOTy::Def);
+ return MachineInstrBuilder(MI).addReg(DestReg, MachineOperand::Def);
}
/// BMI - A special BuildMI variant that takes an iterator to insert the
OpenPOWER on IntegriCloud