[PGO] Add --text option for llvm-profdata show|merge commands
[oota-llvm.git] / include / llvm / ProfileData / InstrProfWriter.h
index 5b122d69977eaa15afa6163208432b0265657485..d026e08ec861d6bf152db0a0dbb71f4f2e71ebdf 100644 (file)
@@ -43,6 +43,11 @@ public:
   std::error_code addRecord(InstrProfRecord &&I);
   /// Write the profile to \c OS
   void write(raw_fd_ostream &OS);
+  /// Write the profile in text format to \c OS
+  void writeText(raw_fd_ostream &OS);
+  /// Write \c Record in text format to \c OS
+  static void writeRecordInText(const InstrProfRecord &Record,
+                                raw_fd_ostream &OS);
   /// Write the profile, returning the raw data. For testing.
   std::unique_ptr<MemoryBuffer> writeBuffer();