[llvm] r257924 - Fix -Wmismatched-tags warning/error
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 11:22:41 PST 2016
Author: davidxl
Date: Fri Jan 15 13:22:41 2016
New Revision: 257924
URL: http://llvm.org/viewvc/llvm-project?rev=257924&view=rev
Log:
Fix -Wmismatched-tags warning/error
Modified:
llvm/trunk/lib/ProfileData/InstrProfWriter.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProfWriter.cpp?rev=257924&r1=257923&r2=257924&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProfWriter.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProfWriter.cpp Fri Jan 15 13:22:41 2016
@@ -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) {}
More information about the llvm-commits
mailing list