summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-09-20 18:48:56 +0000
committerDevang Patel <dpatel@apple.com>2011-09-20 18:48:56 +0000
commit7d06f5cdd483055330a40c689c0ee21ade2b11d1 (patch)
treead814ab8c751d2ee778a11c7e0725a273c037aca /llvm
parent1bfe55a378b502f07303788841fe49558b6056c3 (diff)
downloadbcm5719-llvm-7d06f5cdd483055330a40c689c0ee21ade2b11d1.tar.gz
bcm5719-llvm-7d06f5cdd483055330a40c689c0ee21ade2b11d1.zip
If simple ownership works then friendship is not required.
llvm-svn: 140169
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index acc36f0787c..ccf7e1109cd 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -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;
};
OpenPOWER on IntegriCloud