diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-03-21 17:46:22 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-03-21 17:46:22 +0000 |
commit | b9bd7f85a76263e6092198435b59b85a1b65aa0f (patch) | |
tree | 70639306072c6328a0bfdd28606e0e30684a7f22 /llvm/lib/ProfileData/InstrProf.cpp | |
parent | c07cc8f370704dc28db6d8e75ab9c5a9dfbca9c2 (diff) | |
download | bcm5719-llvm-b9bd7f85a76263e6092198435b59b85a1b65aa0f.tar.gz bcm5719-llvm-b9bd7f85a76263e6092198435b59b85a1b65aa0f.zip |
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.
llvm-svn: 204489
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index 329abf84e6e..ecabdd75bdf 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -39,6 +39,12 @@ class InstrProfErrorCategoryType : public error_category { return "Malformed profile data"; case instrprof_error::unknown_function: return "No profile data available for function"; + case instrprof_error::hash_mismatch: + return "Function hash mismatch"; + case instrprof_error::count_mismatch: + return "Function count mismatch"; + case instrprof_error::counter_overflow: + return "Counter overflow"; } llvm_unreachable("A value of instrprof_error has no message."); } |