aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/InstrProfReader.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/InstrProfReader.cpp
parent4689ef59436d586622c2f07c525919658e350892 (diff)
downloadllvm-99556877aec2c39fbdf1c62a2caba5b7fccff613.zip
llvm-99556877aec2c39fbdf1c62a2caba5b7fccff613.tar.gz
llvm-99556877aec2c39fbdf1c62a2caba5b7fccff613.tar.bz2
[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/InstrProfReader.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index 6f20124..479b6bc 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -313,9 +313,8 @@ typedef InstrProfLookupTrait::offset_type offset_type;
bool InstrProfLookupTrait::ReadValueProfilingData(
const unsigned char *&D, const unsigned char *const End) {
- ErrorOr<std::unique_ptr<IndexedInstrProf::ValueProfData>> VDataPtrOrErr =
- IndexedInstrProf::ValueProfData::getValueProfData(
- D, End, ValueProfDataEndianness);
+ ErrorOr<std::unique_ptr<ValueProfData>> VDataPtrOrErr =
+ ValueProfData::getValueProfData(D, End, ValueProfDataEndianness);
if (VDataPtrOrErr.getError())
return false;