[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp

Evan Cheng evan.cheng at apple.com
Wed Nov 29 23:12:20 PST 2006



Changes in directory llvm/lib/Target/Alpha:

AlphaBranchSelector.cpp updated: 1.1 -> 1.2
---
Log message:

MachineInstr::setOpcode -> MachineInstr::setInstrDescriptor


---
Diffs of the changes:  (+2 -1)

 AlphaBranchSelector.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp
diff -u llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.1 llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.2
--- llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.1	Tue Oct 31 10:49:55 2006
+++ llvm/lib/Target/Alpha/AlphaBranchSelector.cpp	Thu Nov 30 01:12:03 2006
@@ -53,7 +53,8 @@
         // 0. bc opcode
         // 1. reg
         // 2. target MBB
-        MBBI->setOpcode(MBBI->getOperand(0).getImm());
+        const TargetInstrInfo *TII = Fn.getTarget().getInstrInfo();
+        MBBI->setInstrDescriptor(TII->get(MBBI->getOperand(0).getImm()));
       }
     }
   }






More information about the llvm-commits mailing list