[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)
commit51abea7442afc5a113b1f5c0019f867d9852ddce
tree85f063fb95464e48b181513633d2673a4b51bca4
parent1317d5f311add3c44a681c7e8c14eb0d35c8fc50
[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

llvm-svn: 255264
llvm/include/llvm/ProfileData/SampleProfReader.h
llvm/include/llvm/ProfileData/SampleProfWriter.h
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/unittests/ProfileData/CMakeLists.txt
llvm/unittests/ProfileData/SampleProfTest.cpp [new file with mode: 0644]