[PGO] Refactor profile dumping function for ease of adding other profile kind
authorRong Xu <xur@google.com>
Thu, 9 Mar 2017 19:03:57 +0000 (19:03 +0000)
committerRong Xu <xur@google.com>
Thu, 9 Mar 2017 19:03:57 +0000 (19:03 +0000)
commitfbfbf0620354be7a9d5ae4aa674784149615f0d9
tree21586a2edf38591a47a1cbbf2e10f01b1ce2f8b1
parent3640f26b7e13e7efe1e0674d8cec4e5dc0c903c1
[PGO] Refactor profile dumping function for ease of adding other profile kind

Refactor the dumping function so that we can add other value profile kind easily.

Differential Revision: https://reviews.llvm.org/D30752

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297399 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-profdata/value-prof.proftext
tools/llvm-profdata/llvm-profdata.cpp