@@ -97,7 +97,7 @@ class DataAccessProfData {
9797
9898 // / Methods to add symbolized data access profile. Returns error if duplicated
9999 // / symbol names or content hashes are seen. The user of this class should
100- // / aggregate counters that corresponds to the same symbol name or with the
100+ // / aggregate counters that correspond to the same symbol name or with the
101101 // / same string literal hash before calling 'add*' methods.
102102 Error setDataAccessProfile (SymbolID SymbolID, uint64_t AccessCount);
103103 // / Similar to the method above, for records with \p Locations representing
@@ -108,23 +108,24 @@ class DataAccessProfData {
108108 const llvm::SmallVector<DataLocation> &Locations);
109109 Error addKnownSymbolWithoutSamples (SymbolID SymbolID);
110110
111- // / Returns a iterable StringRef for strings in the order they are added.
111+ // / Returns an iterable StringRef for strings in the order they are added.
112+ // / Each string may be a symbol name or a file name.
112113 auto getStrings () const {
113114 ArrayRef<std::pair<StringRef, uint64_t >> RefSymbolNames (
114115 StrToIndexMap.begin (), StrToIndexMap.end ());
115116 return llvm::make_first_range (RefSymbolNames);
116117 }
117118
118119 // / Returns array reference for various internal data structures.
119- inline ArrayRef<
120+ ArrayRef<
120121 std::pair<std::variant<StringRef, uint64_t >, DataAccessProfRecord>>
121122 getRecords () const {
122123 return Records.getArrayRef ();
123124 }
124- inline ArrayRef<StringRef> getKnownColdSymbols () const {
125+ ArrayRef<StringRef> getKnownColdSymbols () const {
125126 return KnownColdSymbols.getArrayRef ();
126127 }
127- inline ArrayRef<uint64_t > getKnownColdHashes () const {
128+ ArrayRef<uint64_t > getKnownColdHashes () const {
128129 return KnownColdHashes.getArrayRef ();
129130 }
130131
0 commit comments