diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-22 19:23:26 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-22 19:23:26 +0000 |
commit | 8358cc573de46e1e8620ad3b1fc5f8f1d12e347a (patch) | |
tree | 4ec0b5561047b618cd3c1c2b862e3fac856a4d58 /llvm/lib/Target/X86/InstSelectSimple.cpp | |
parent | 84b406650e89e9931954a9937ff75732e72023f4 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |