If simple ownership works then friendship is not required.
authorDevang Patel <dpatel@apple.com>
Tue, 20 Sep 2011 18:48:56 +0000 (18:48 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 20 Sep 2011 18:48:56 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/GCOVProfiling.cpp

index acc36f0787c8dcd81d2c4fbfa83a5487b06274e5..ccf7e1109cd9361dc4d43bb98f05aaa59b095561 100644 (file)
@@ -177,14 +177,13 @@ namespace {
       for (int i = 0, e = Lines.size(); i != e; ++i)
         write(Lines[i]);
     }
-   private:
-    friend class GCOVBlock;
 
     GCOVLines(StringRef F, raw_ostream *os) 
       : Filename(F) {
       this->os = os;
     }
 
+   private:
     StringRef Filename;
     SmallVector<uint32_t, 32> Lines;
   };