[ProfileData] Add unit test infrastructure for sample profile reader/writer
authorNathan Slingerland <slingn@gmail.com>
Thu, 10 Dec 2015 17:21:42 +0000 (17:21 +0000)
committerNathan Slingerland <slingn@gmail.com>
Thu, 10 Dec 2015 17:21:42 +0000 (17:21 +0000)
commit46cf0f07dcf34cfe59bfcfe7fb8b5a5797e786e6
tree76f4a2157a66ec24fa21ba553d6f5a46be29e604
parent7845ed025cc5f41530cb43b9144ec4556bf69128
[ProfileData] Add unit test infrastructure for sample profile reader/writer

Summary:
Adds support for in-memory round-trip of sample profile data along with basic
round trip unit tests. This will also make it easier to include unit tests for
future changes to sample profiling.

Reviewers: davidxl, dnovillo, silvas

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255264 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
lib/ProfileData/SampleProfReader.cpp
lib/ProfileData/SampleProfWriter.cpp
unittests/ProfileData/CMakeLists.txt
unittests/ProfileData/SampleProfTest.cpp [new file with mode: 0644]