@@ -439,7 +439,7 @@ struct IndexedMemProfRecord {
439439 // on the schema provided in \p Schema.
440440 void serialize (const MemProfSchema &Schema, raw_ostream &OS,
441441 IndexedVersion Version,
442- llvm::DenseMap<memprof:: CallStackId, LinearCallStackId>
442+ llvm::DenseMap<CallStackId, LinearCallStackId>
443443 *MemProfCallStackIndexes = nullptr ) const ;
444444
445445 // Deserializes memprof records from the Buffer.
@@ -579,15 +579,14 @@ class RecordWriterTrait {
579579 IndexedVersion Version;
580580
581581 // Mappings from CallStackId to the indexes into the call stack array.
582- llvm::DenseMap<memprof::CallStackId, LinearCallStackId>
583- *MemProfCallStackIndexes;
582+ llvm::DenseMap<CallStackId, LinearCallStackId> *MemProfCallStackIndexes;
584583
585584public:
586585 // We do not support the default constructor, which does not set Version.
587586 RecordWriterTrait () = delete ;
588- RecordWriterTrait (const MemProfSchema *Schema, IndexedVersion V,
589- llvm::DenseMap<memprof::CallStackId, LinearCallStackId>
590- *MemProfCallStackIndexes)
587+ RecordWriterTrait (
588+ const MemProfSchema *Schema, IndexedVersion V,
589+ llvm::DenseMap<CallStackId, LinearCallStackId> *MemProfCallStackIndexes)
591590 : Schema(Schema), Version(V),
592591 MemProfCallStackIndexes (MemProfCallStackIndexes) {}
593592
@@ -1039,11 +1038,10 @@ class CallStackRadixTreeBuilder {
10391038 CallStackRadixTreeBuilder () = default ;
10401039
10411040 // Build a radix tree array.
1042- void
1043- build (llvm::MapVector<CallStackId, llvm::SmallVector<FrameId>>
1044- &&MemProfCallStackData,
1045- const llvm::DenseMap<FrameId, LinearFrameId> &MemProfFrameIndexes,
1046- llvm::DenseMap<memprof::FrameId, memprof::FrameStat> &FrameHistogram);
1041+ void build (llvm::MapVector<CallStackId, llvm::SmallVector<FrameId>>
1042+ &&MemProfCallStackData,
1043+ const llvm::DenseMap<FrameId, LinearFrameId> &MemProfFrameIndexes,
1044+ llvm::DenseMap<FrameId, FrameStat> &FrameHistogram);
10471045
10481046 const std::vector<LinearFrameId> &getRadixArray () const { return RadixArray; }
10491047
0 commit comments