aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-09-05 18:56:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-09-05 18:56:02 +0000
commit04957ac67c32538c6a1a9b4eddad65b4ad734b66 (patch)
tree77f8d3d7cb712b646a93d362535b9f24d5756f6e /include
parent97d2dbd100129d5aa0ee214254a854a2997a032d (diff)
downloadexternal_llvm-04957ac67c32538c6a1a9b4eddad65b4ad734b66.zip
external_llvm-04957ac67c32538c6a1a9b4eddad65b4ad734b66.tar.gz
external_llvm-04957ac67c32538c6a1a9b4eddad65b4ad734b66.tar.bz2
Initialize IsDef of all non-register MachineOperand to false.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index a205792..09e9ad6 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -295,6 +295,7 @@ public:
void addImmOperand(int64_t Val) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_Immediate;
+ Op.IsDef = false;
Op.contents.immedVal = Val;
Op.offset = 0;
}
@@ -302,6 +303,7 @@ public:
void addMachineBasicBlockOperand(MachineBasicBlock *MBB) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_MachineBasicBlock;
+ Op.IsDef = false;
Op.contents.MBB = MBB;
Op.offset = 0;
}
@@ -311,6 +313,7 @@ public:
void addFrameIndexOperand(unsigned Idx) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_FrameIndex;
+ Op.IsDef = false;
Op.contents.immedVal = Idx;
Op.offset = 0;
}
@@ -321,6 +324,7 @@ public:
void addConstantPoolIndexOperand(unsigned Idx, int Offset) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_ConstantPoolIndex;
+ Op.IsDef = false;
Op.contents.immedVal = Idx;
Op.offset = Offset;
}
@@ -331,6 +335,7 @@ public:
void addJumpTableIndexOperand(unsigned Idx) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_JumpTableIndex;
+ Op.IsDef = false;
Op.contents.immedVal = Idx;
Op.offset = 0;
}
@@ -338,6 +343,7 @@ public:
void addGlobalAddressOperand(GlobalValue *GV, int Offset) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_GlobalAddress;
+ Op.IsDef = false;
Op.contents.GV = GV;
Op.offset = Offset;
}
@@ -347,6 +353,7 @@ public:
void addExternalSymbolOperand(const char *SymName) {
MachineOperand &Op = AddNewOperand();
Op.opType = MachineOperand::MO_ExternalSymbol;
+ Op.IsDef = false;
Op.contents.SymbolName = SymName;
Op.offset = 0;
}