mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
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:
@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user