InstrProf: Add unit tests for the profile reader and writer
authorJustin Bogner <mail@justinbogner.com>
Mon, 16 Feb 2015 23:27:48 +0000 (23:27 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 16 Feb 2015 23:27:48 +0000 (23:27 +0000)
commit77ae39453c58a2dada74d0839c2a03fe65e30591
treef22757f44ea844a7ef6c2d7ba1bb9323689b9409
parentca64d76c1bc2c35aeaed515707942313924d5f98
InstrProf: Add unit tests for the profile reader and writer

This required some minor API to be added to these types to avoid
needing temp files.

Also, I've used initializer lists in the tests, as MSVC 2013 claims to
support them. I'll redo this without them if the bots complain.

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