MachineRegisterInfo was already a friend of MachineOperand, and GCC complains
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 9 Aug 2012 00:30:39 +0000 (00:30 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 9 Aug 2012 00:30:39 +0000 (00:30 +0000)
about repeated friending.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161553 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineOperand.h

index d3cf090f9513ac73d890196335f15ddafa71831a..d46101884c7f38a6c53702acb48e22890e5658b0 100644 (file)
@@ -138,9 +138,6 @@ private:
   /// This is valid for all operand types, when the operand is in an instr.
   MachineInstr *ParentMI;
 
-  // MRI accesses Contents.Reg directly.
-  friend class MachineRegisterInfo;
-
   /// Contents union - This contains the payload for the various operand types.
   union {
     MachineBasicBlock *MBB;   // For MO_MachineBasicBlock.