ProfileData: Introduce InstrProfWriter using the naive text format
authorJustin Bogner <mail@justinbogner.com>
Fri, 21 Mar 2014 17:46:22 +0000 (17:46 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 21 Mar 2014 17:46:22 +0000 (17:46 +0000)
commit496d7f66a022e234156ea34fe90bb7db5e6ec03c
tree90c3c0a7134df8388ba4e4374c2238f9a0e81fc7
parent469198f9950e1f89a6f0f8d58385c960a3697c66
ProfileData: Introduce InstrProfWriter using the naive text format

This isn't a format we'll want to write out in practice, but moving it
to the writer library simplifies llvm-profdata and isolates it from
further changes to the format.

This also allows us to update the tests to not rely on the text output
format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204489 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
include/llvm/ProfileData/InstrProfWriter.h [new file with mode: 0644]
lib/ProfileData/CMakeLists.txt
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfWriter.cpp [new file with mode: 0644]
test/tools/llvm-profdata/errors.test
test/tools/llvm-profdata/simple.test
tools/llvm-profdata/llvm-profdata.cpp