diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-17 23:00:40 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-17 23:00:40 +0000 |
commit | 99556877aec2c39fbdf1c62a2caba5b7fccff613 (patch) | |
tree | 58d20e948e92ebaccb75539050afc8c573100724 /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | 4689ef59436d586622c2f07c525919658e350892 (diff) | |
download | bcm5719-llvm-99556877aec2c39fbdf1c62a2caba5b7fccff613.tar.gz bcm5719-llvm-99556877aec2c39fbdf1c62a2caba5b7fccff613.zip |
[PGO] Move value profile data definitions out of IndexedInstrProf
Move the data structure defintions out of the namespace. The defs will
be shared by raw format. [NFC]
llvm-svn: 253394
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index b6725df5278..cb123e29982 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -53,7 +53,7 @@ public: M += ProfRecord.Counts.size() * sizeof(uint64_t); // Value data - M += IndexedInstrProf::ValueProfData::getSize(ProfileData.second); + M += ValueProfData::getSize(ProfileData.second); } LE.write<offset_type>(M); @@ -77,8 +77,8 @@ public: LE.write<uint64_t>(I); // Write value data - std::unique_ptr<IndexedInstrProf::ValueProfData> VDataPtr = - IndexedInstrProf::ValueProfData::serializeFrom(ProfileData.second); + std::unique_ptr<ValueProfData> VDataPtr = + ValueProfData::serializeFrom(ProfileData.second); uint32_t S = VDataPtr->getSize(); VDataPtr->swapBytesFromHost(ValueProfDataEndianness); Out.write((const char *)VDataPtr.get(), S); |