diff options
Diffstat (limited to 'lib/ProfileData/InstrProfReader.cpp')
| -rw-r--r-- | lib/ProfileData/InstrProfReader.cpp | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index 1ed1fb8b6f0b..1b39a0695aac 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -221,7 +221,7 @@ TextInstrProfReader::readValueProfileData(InstrProfRecord &Record) {  #undef VP_READ_ADVANCE  } -Error TextInstrProfReader::readNextRecord(InstrProfRecord &Record) { +Error TextInstrProfReader::readNextRecord(NamedInstrProfRecord &Record) {    // Skip empty lines and comments.    while (!Line.is_at_end() && (Line->empty() || Line->startswith("#")))      ++Line; @@ -377,13 +377,13 @@ Error RawInstrProfReader<IntPtrT>::readHeader(  }  template <class IntPtrT> -Error RawInstrProfReader<IntPtrT>::readName(InstrProfRecord &Record) { +Error RawInstrProfReader<IntPtrT>::readName(NamedInstrProfRecord &Record) {    Record.Name = getName(Data->NameRef);    return success();  }  template <class IntPtrT> -Error RawInstrProfReader<IntPtrT>::readFuncHash(InstrProfRecord &Record) { +Error RawInstrProfReader<IntPtrT>::readFuncHash(NamedInstrProfRecord &Record) {    Record.Hash = swap(Data->FuncHash);    return success();  } @@ -445,7 +445,7 @@ Error RawInstrProfReader<IntPtrT>::readValueProfilingData(  }  template <class IntPtrT> -Error RawInstrProfReader<IntPtrT>::readNextRecord(InstrProfRecord &Record) { +Error RawInstrProfReader<IntPtrT>::readNextRecord(NamedInstrProfRecord &Record) {    if (atEnd())      // At this point, ValueDataStart field points to the next header.      if (Error E = readNextHeader(getNextHeaderPos())) @@ -550,7 +550,7 @@ data_type InstrProfLookupTrait::ReadData(StringRef K, const unsigned char *D,  template <typename HashTableImpl>  Error InstrProfReaderIndex<HashTableImpl>::getRecords( -    StringRef FuncName, ArrayRef<InstrProfRecord> &Data) { +    StringRef FuncName, ArrayRef<NamedInstrProfRecord> &Data) {    auto Iter = HashTable->find(FuncName);    if (Iter == HashTable->end())      return make_error<InstrProfError>(instrprof_error::unknown_function); @@ -564,7 +564,7 @@ Error InstrProfReaderIndex<HashTableImpl>::getRecords(  template <typename HashTableImpl>  Error InstrProfReaderIndex<HashTableImpl>::getRecords( -    ArrayRef<InstrProfRecord> &Data) { +    ArrayRef<NamedInstrProfRecord> &Data) {    if (atEnd())      return make_error<InstrProfError>(instrprof_error::eof); @@ -644,7 +644,7 @@ IndexedInstrProfReader::readSummary(IndexedInstrProf::ProfVersion Version,      InstrProfSummaryBuilder Builder(ProfileSummaryBuilder::DefaultCutoffs);      // FIXME: This only computes an empty summary. Need to call addRecord for -    // all InstrProfRecords to get the correct summary. +    // all NamedInstrProfRecords to get the correct summary.      this->Summary = Builder.getSummary();      return Cur;    } @@ -707,7 +707,7 @@ InstrProfSymtab &IndexedInstrProfReader::getSymtab() {  Expected<InstrProfRecord>  IndexedInstrProfReader::getInstrProfRecord(StringRef FuncName,                                             uint64_t FuncHash) { -  ArrayRef<InstrProfRecord> Data; +  ArrayRef<NamedInstrProfRecord> Data;    Error Err = Index->getRecords(FuncName, Data);    if (Err)      return std::move(Err); @@ -732,10 +732,10 @@ Error IndexedInstrProfReader::getFunctionCounts(StringRef FuncName,    return success();  } -Error IndexedInstrProfReader::readNextRecord(InstrProfRecord &Record) { +Error IndexedInstrProfReader::readNextRecord(NamedInstrProfRecord &Record) {    static unsigned RecordIndex = 0; -  ArrayRef<InstrProfRecord> Data; +  ArrayRef<NamedInstrProfRecord> Data;    Error E = Index->getRecords(Data);    if (E)  | 
