[PGO] Value profiling text format reader/writer support
authorXinliang David Li <davidxl@google.com>
Mon, 14 Dec 2015 18:44:01 +0000 (18:44 +0000)
committerXinliang David Li <davidxl@google.com>
Mon, 14 Dec 2015 18:44:01 +0000 (18:44 +0000)
commitea0570fdaf61c451e0b4003b30701bd6b95ada26
treec10ca477b376f91604a371cb947048765797909b
parent868145efb053c3f9294676cf4f36d6220e500269
[PGO] Value profiling text format reader/writer support

This patch adds the missing functionality in parsable
text format support for value profiling.

Differential Revision: http://reviews.llvm.org/D15212

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255523 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProfReader.h
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/InstrProfWriter.cpp
test/tools/llvm-profdata/Inputs/vp-malform.proftext [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/vp-malform2.proftext [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/vp-truncate.proftext [new file with mode: 0644]
test/tools/llvm-profdata/text-format-errors.test
test/tools/llvm-profdata/value-prof.proftext [new file with mode: 0644]