summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProfWriter.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-17 23:00:40 +0000
committerXinliang David Li <davidxl@google.com>2015-11-17 23:00:40 +0000
commit99556877aec2c39fbdf1c62a2caba5b7fccff613 (patch)
tree58d20e948e92ebaccb75539050afc8c573100724 /llvm/lib/ProfileData/InstrProfWriter.cpp
parent4689ef59436d586622c2f07c525919658e350892 (diff)
downloadbcm5719-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.cpp6
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);
OpenPOWER on IntegriCloud