diff options
author | Xinliang David Li <davidxl@google.com> | 2016-01-14 02:47:01 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-01-14 02:47:01 +0000 |
commit | a6b2c4f721f4243d4b39f1ab02bbdc986002afdc (patch) | |
tree | d00cedf098f2558dce79e9ceb1d533ba2f1bed75 /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | 4b35874b2a9e8efc8e3123726bc611030d382ecf (diff) | |
download | bcm5719-llvm-a6b2c4f721f4243d4b39f1ab02bbdc986002afdc.tar.gz bcm5719-llvm-a6b2c4f721f4243d4b39f1ab02bbdc986002afdc.zip |
[PGO] clean up and documentation
Introduce enum for indexed format versions and
document indexed format change history.
llvm-svn: 257737
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index f5227248af2..44ad016f1a8 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -140,7 +140,7 @@ std::pair<uint64_t, uint64_t> InstrProfWriter::writeImpl(raw_ostream &OS) { // Write the header. IndexedInstrProf::Header Header; Header.Magic = IndexedInstrProf::Magic; - Header.Version = IndexedInstrProf::Version; + Header.Version = IndexedInstrProf::ProfVersion::CurrentVersion; Header.MaxFunctionCount = MaxFunctionCount; Header.HashType = static_cast<uint64_t>(IndexedInstrProf::HashType); Header.HashOffset = 0; |