diff options
author | Rong Xu <xur@google.com> | 2016-02-08 23:11:16 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2016-02-08 23:11:16 +0000 |
commit | d0dfb67fe18e24de6e45d6cfaca8ef91f36cbd26 (patch) | |
tree | a8c2d74dd528081fae5ca618885afa116b127f7a /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | 1da4afdfc9fe6cb8848e9fb7aa55ff53d06bd16b (diff) | |
download | bcm5719-llvm-d0dfb67fe18e24de6e45d6cfaca8ef91f36cbd26.tar.gz bcm5719-llvm-d0dfb67fe18e24de6e45d6cfaca8ef91f36cbd26.zip |
[PGO] Revert r260146 as it breaks Darwin platforms.
r260146 | xur | 2016-02-08 13:07:46 -0800 (Mon, 08 Feb 2016) | 13 lines
[PGO] Differentiate Clang instrumentation and IR level instrumentation profiles
llvm-svn: 260170
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index 3e325718769..a486d4eecb7 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -142,7 +142,7 @@ public: } InstrProfWriter::InstrProfWriter(bool Sparse) - : Sparse(Sparse), FunctionData(), ProfileKind(PF_Unknown), + : Sparse(Sparse), FunctionData(), InfoObj(new InstrProfRecordWriterTrait()) {} InstrProfWriter::~InstrProfWriter() { delete InfoObj; } @@ -230,8 +230,6 @@ void InstrProfWriter::writeImpl(ProfOStream &OS) { IndexedInstrProf::Header Header; Header.Magic = IndexedInstrProf::Magic; Header.Version = IndexedInstrProf::ProfVersion::CurrentVersion; - if (ProfileKind == PF_IRLevel) - Header.Version |= VARIANT_MASK_IR_PROF; Header.Unused = 0; Header.HashType = static_cast<uint64_t>(IndexedInstrProf::HashType); Header.HashOffset = 0; @@ -338,8 +336,6 @@ void InstrProfWriter::writeRecordInText(const InstrProfRecord &Func, } void InstrProfWriter::writeText(raw_fd_ostream &OS) { - if (ProfileKind == PF_IRLevel) - OS << "# IR level Instrumentation Flag\n:ir\n"; InstrProfSymtab Symtab; for (const auto &I : FunctionData) if (shouldEncodeData(I.getValue())) |