File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1324,6 +1324,8 @@ class CfiFunctionIndex {
1324
1324
return Index.end ();
1325
1325
}
1326
1326
1327
+ std::vector<StringRef> symbols () const { return {begin (), end ()}; }
1328
+
1327
1329
GUIDIterator guid_begin () const { return GUIDIterator (Index.begin ()); }
1328
1330
GUIDIterator guid_end () const { return GUIDIterator (Index.end ()); }
1329
1331
iterator_range<GUIDIterator> guids () const {
Original file line number Diff line number Diff line change @@ -347,12 +347,10 @@ template <> struct MappingTraits<ModuleSummaryIndex> {
347
347
index .WithGlobalValueDeadStripping );
348
348
349
349
if (io.outputting ()) {
350
- std::vector<StringRef> CfiFunctionDefs (index .CfiFunctionDefs .begin (),
351
- index .CfiFunctionDefs .end ());
350
+ auto CfiFunctionDefs = index .CfiFunctionDefs .symbols ();
352
351
llvm::sort (CfiFunctionDefs);
353
352
io.mapOptional (" CfiFunctionDefs" , CfiFunctionDefs);
354
- std::vector<StringRef> CfiFunctionDecls (index .CfiFunctionDecls .begin (),
355
- index .CfiFunctionDecls .end ());
353
+ auto CfiFunctionDecls (index .CfiFunctionDecls .symbols ());
356
354
llvm::sort (CfiFunctionDecls);
357
355
io.mapOptional (" CfiFunctionDecls" , CfiFunctionDecls);
358
356
} else {
You can’t perform that action at this time.
0 commit comments