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
This commit is contained in:
Justin Bogner
2014-03-21 17:46:22 +00:00
parent 469198f995
commit 496d7f66a0
8 changed files with 204 additions and 80 deletions

View File

@@ -31,7 +31,10 @@ struct instrprof_error {
too_large,
truncated,
malformed,
unknown_function
unknown_function,
hash_mismatch,
count_mismatch,
counter_overflow
};
ErrorType V;