If simple ownership works then friendship is not required.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2011-09-20 18:48:56 +00:00
parent 51bae90289
commit 680018ff89

View 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;
};