MachineRegisterInfo was already a friend of MachineOperand, and GCC complains
[oota-llvm.git] / include / llvm / CodeGen / MachineOperand.h
index c08b22d105ea0bc826b1bd9254c8fbdc61413e13..d46101884c7f38a6c53702acb48e22890e5658b0 100644 (file)
@@ -305,15 +305,6 @@ public:
     return !isUndef() && !isInternalRead() && (isUse() || getSubReg());
   }
 
-  /// getNextOperandForReg - Return the next MachineOperand in the linked list
-  /// of operands that use or define the same register.
-  /// Don't call this function directly, see the def-use iterators in
-  /// MachineRegisterInfo instead.
-  MachineOperand *getNextOperandForReg() const {
-    assert(isReg() && "This is not a register operand!");
-    return Contents.Reg.Next;
-  }
-
   //===--------------------------------------------------------------------===//
   // Mutators for Register Operands
   //===--------------------------------------------------------------------===//