[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp
Evan Cheng
evan.cheng at apple.com
Wed Nov 15 12:54:44 PST 2006
Changes in directory llvm/lib/CodeGen:
MachineInstr.cpp updated: 1.130 -> 1.131
---
Log message:
Minor updates.
---
Diffs of the changes: (+4 -4)
MachineInstr.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.130 llvm/lib/CodeGen/MachineInstr.cpp:1.131
--- llvm/lib/CodeGen/MachineInstr.cpp:1.130 Mon Nov 13 17:34:06 2006
+++ llvm/lib/CodeGen/MachineInstr.cpp Wed Nov 15 14:54:29 2006
@@ -38,7 +38,7 @@
/// Eventually, the "resizing" ctors will be phased out.
///
MachineInstr::MachineInstr(short opcode, unsigned numOperands)
- : Opcode(opcode), parent(0), NumImplicitOps(0) {
+ : Opcode(opcode), NumImplicitOps(0), parent(0) {
Operands.reserve(numOperands);
// Make sure that we get added to a machine basicblock
LeakDetector::addGarbageObject(this);
@@ -75,7 +75,7 @@
/// implicit operands. It reserves space for numOperand operands.
MachineInstr::MachineInstr(const TargetInstrInfo &TII, short opcode,
unsigned numOperands)
- : Opcode(opcode), parent(0), NumImplicitOps(0) {
+ : Opcode(opcode), NumImplicitOps(0), parent(0) {
const TargetInstrDescriptor &TID = TII.get(opcode);
if (TID.ImplicitDefs)
for (const unsigned *ImpDefs = TID.ImplicitDefs; *ImpDefs; ++ImpDefs)
@@ -94,7 +94,7 @@
///
MachineInstr::MachineInstr(MachineBasicBlock *MBB, short opcode,
unsigned numOperands)
- : Opcode(opcode), parent(0), NumImplicitOps(0) {
+ : Opcode(opcode), NumImplicitOps(0), parent(0) {
assert(MBB && "Cannot use inserting ctor with null basic block!");
const TargetInstrDescriptor &TID = MBB->getParent()->getTarget().
getInstrInfo()->get(opcode);
@@ -115,9 +115,9 @@
///
MachineInstr::MachineInstr(const MachineInstr &MI) {
Opcode = MI.getOpcode();
+ NumImplicitOps = MI.NumImplicitOps;
Operands.reserve(MI.getNumOperands());
- NumImplicitOps = MI.NumImplicitOps;
// Add operands
for (unsigned i = 0; i != MI.getNumOperands(); ++i)
Operands.push_back(MI.getOperand(i));
More information about the llvm-commits
mailing list