aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-15 20:54:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-15 20:54:29 +0000
commit6b2c05f3d3c7b44183c629485ade10c18b86828d (patch)
treec3cbc54404b70090132f5fd5f69d09a020578c02 /lib/CodeGen/MachineInstr.cpp
parent9a1956ae6ad2d4892afbc9f1b97d645d220b6d4a (diff)
Minor updates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 849e647a1f..41e2cdfe83 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -38,7 +38,7 @@ namespace llvm {
/// 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 @@ void MachineInstr::addImplicitDefUseOperands(const TargetInstrDescriptor &TID) {
/// 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(const TargetInstrInfo &TII, short opcode,
///
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(MachineBasicBlock *MBB, short opcode,
///
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));