diff options
Diffstat (limited to 'llvm/lib/ProfileData')
| -rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 3 |
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) {} |

