Make DiffListIterator public to unbreak the gcc buildbots.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 30 May 2012 00:05:03 +0000 (00:05 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 30 May 2012 00:05:03 +0000 (00:05 +0000)
Apparently, a friend can't derive from a private class according to gcc.

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

include/llvm/MC/MCRegisterInfo.h

index 60c385db6a05002235a2e9d2a8225a5826aa1348..364f9e5db41c8099a1f6cad838838531696e8c60 100644 (file)
@@ -166,6 +166,7 @@ private:
   const DwarfLLVMRegPair *EHDwarf2LRegs;      // Dwarf to LLVM regs mapping EH
   DenseMap<unsigned, int> L2SEHRegs;          // LLVM to SEH regs mapping
 
+public:
   /// DiffListIterator - Base iterator class that can traverse the
   /// differentially encoded register and regunit lists in DiffLists.
   /// Don't use this class directly, use one of the specialized sub-classes
@@ -216,7 +217,6 @@ private:
   // internal list pointers.
   friend class MCRegUnitIterator;
 
-public:
   /// InitMCRegisterInfo - Initialize MCRegisterInfo, called by TableGen
   /// auto-generated routines. *DO NOT USE*.
   void InitMCRegisterInfo(const MCRegisterDesc *D, unsigned NR, unsigned RA,