diff options
author | Diego Novillo <dnovillo@google.com> | 2014-11-01 00:56:55 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2014-11-01 00:56:55 +0000 |
commit | d5336ae269d86af133cb465e1b0dba38121f11c2 (patch) | |
tree | 705c53dae847beba892284f1db28aa96b31d93e3 /llvm/lib/ProfileData/SampleProf.cpp | |
parent | a33cd6aa27ab02514224dd461504e10cc0e14fac (diff) | |
download | bcm5719-llvm-d5336ae269d86af133cb465e1b0dba38121f11c2.tar.gz bcm5719-llvm-d5336ae269d86af133cb465e1b0dba38121f11c2.zip |
Add show and merge tools for sample PGO profiles.
Summary:
This patch extends the 'show' and 'merge' commands in llvm-profdata to handle
sample PGO formats. Using the 'merge' command it is now possible to convert
one sample PGO format to another.
The only format that is currently not working is 'gcc'. I still need to
implement support for it in lib/ProfileData.
The changes in the sample profile support classes are needed for the
merge operation.
Reviewers: bogner
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6065
llvm-svn: 221032
Diffstat (limited to 'llvm/lib/ProfileData/SampleProf.cpp')
-rw-r--r-- | llvm/lib/ProfileData/SampleProf.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/SampleProf.cpp b/llvm/lib/ProfileData/SampleProf.cpp index 8bd2249f57e..920c48a2464 100644 --- a/llvm/lib/ProfileData/SampleProf.cpp +++ b/llvm/lib/ProfileData/SampleProf.cpp @@ -36,6 +36,8 @@ class SampleProfErrorCategoryType : public std::error_category { return "Truncated profile data"; case sampleprof_error::malformed: return "Malformed profile data"; + case sampleprof_error::unrecognized_format: + return "Unrecognized profile encoding format"; } llvm_unreachable("A value of sampleprof_error has no message."); } |