Use MachineBasicBlock::transferSuccessors.
[oota-llvm.git] / include / llvm / CodeGen / MachineOperand.h
index b4601e18fa7cc52192d2692d38bf0cc4df5c24ab..28d63524bc4edc89ed0788b8381cfe79461a537e 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_CODEGEN_MACHINEOPERAND_H
 
 #include "llvm/Support/DataTypes.h"
-#include <vector>
 #include <cassert>
 #include <iosfwd>
 
@@ -33,16 +32,15 @@ class MachineRegisterInfo;
 class MachineOperand {
 public:
   enum MachineOperandType {
-    MO_Register,                // Register operand
-    MO_Immediate,               // Immediate operand
-    MO_FPImmediate,             // FP immediate operand
+    MO_Register,                // Register operand.
+    MO_Immediate,               // Immediate Operand
+    MO_FPImmediate,
     MO_MachineBasicBlock,       // MachineBasicBlock reference
     MO_FrameIndex,              // Abstract Stack Frame Index
     MO_ConstantPoolIndex,       // Address of indexed Constant in Constant Pool
     MO_JumpTableIndex,          // Address of indexed Jump Table for switch
     MO_ExternalSymbol,          // Name of external global symbol
-    MO_GlobalAddress,           // Address of a global value
-    MO_Undef                    // Undef
+    MO_GlobalAddress            // Address of a global value
   };
 
 private:
@@ -131,7 +129,6 @@ public:
   bool isJumpTableIndex() const { return OpKind == MO_JumpTableIndex; }
   bool isGlobalAddress() const { return OpKind == MO_GlobalAddress; }
   bool isExternalSymbol() const { return OpKind == MO_ExternalSymbol; }
-  bool isUndef() const { return OpKind == MO_Undef; }
 
   bool isReg() const { return OpKind == MO_Register; }
   bool isImm() const { return OpKind == MO_Immediate; }
@@ -377,11 +374,6 @@ public:
     Op.setOffset(Offset);
     return Op;
   }
-  static MachineOperand CreateUndef() {
-    MachineOperand Op(MachineOperand::MO_Undef);
-    return Op;
-  }
-
   const MachineOperand &operator=(const MachineOperand &MO) {
     OpKind   = MO.OpKind;
     IsDef    = MO.IsDef;