If simple ownership works then friendship is not required.
llvm-svn: 140169
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index acc36f0..ccf7e11 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -177,14 +177,13 @@
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;
};