From: Xinliang David Li Date: Mon, 23 Nov 2015 22:31:22 +0000 (+0000) Subject: [PGO] In llvm-profdata text dump, add comment lines as annotations X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=54daffcbaaae77ecbccfbaf61fdc736211fe57af;p=oota-llvm.git [PGO] In llvm-profdata text dump, add comment lines as annotations git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253930 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ProfileData/InstrProfWriter.cpp b/lib/ProfileData/InstrProfWriter.cpp index 1c97b1ad0d3..f9cc2afe3da 100644 --- a/lib/ProfileData/InstrProfWriter.cpp +++ b/lib/ProfileData/InstrProfWriter.cpp @@ -173,7 +173,10 @@ void InstrProfWriter::write(raw_fd_ostream &OS) { void InstrProfWriter::writeRecordInText(const InstrProfRecord &Func, raw_fd_ostream &OS) { - OS << Func.Name << "\n" << Func.Hash << "\n" << Func.Counts.size() << "\n"; + OS << Func.Name << "\n"; + OS << "# Func Hash:\n" << Func.Hash << "\n"; + OS << "# Num Counters:\n" <