summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-15 19:22:41 +0000
committerXinliang David Li <davidxl@google.com>2016-01-15 19:22:41 +0000
commit285d7bd4e78c2fdd03b714910776785264e5f6a9 (patch)
tree19161073d08c4af074460d9603e21616ceaf360d /llvm/lib
parent132bf36161772d0593941f9e686950c9a49551cd (diff)
downloadbcm5719-llvm-285d7bd4e78c2fdd03b714910776785264e5f6a9.tar.gz
bcm5719-llvm-285d7bd4e78c2fdd03b714910776785264e5f6a9.zip
Fix -Wmismatched-tags warning/error
llvm-svn: 257924
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ProfileData/InstrProfWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index f684dde336a..4c7f5de26aa 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -31,8 +31,9 @@ struct PatchItem {
namespace llvm {
// A wrapper class to abstract writer stream with support of bytes
// back patching.
-struct ProfOStream {
+class ProfOStream {
+public:
ProfOStream(llvm::raw_fd_ostream &FD) : IsFDOStream(true), OS(FD), LE(FD) {}
ProfOStream(llvm::raw_string_ostream &STR)
: IsFDOStream(false), OS(STR), LE(STR) {}
OpenPOWER on IntegriCloud