@@ -439,7 +439,7 @@ struct IndexedMemProfRecord {
439
439
// on the schema provided in \p Schema.
440
440
void serialize (const MemProfSchema &Schema, raw_ostream &OS,
441
441
IndexedVersion Version,
442
- llvm::DenseMap<memprof:: CallStackId, LinearCallStackId>
442
+ llvm::DenseMap<CallStackId, LinearCallStackId>
443
443
*MemProfCallStackIndexes = nullptr ) const ;
444
444
445
445
// Deserializes memprof records from the Buffer.
@@ -579,15 +579,14 @@ class RecordWriterTrait {
579
579
IndexedVersion Version;
580
580
581
581
// 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;
584
583
585
584
public:
586
585
// We do not support the default constructor, which does not set Version.
587
586
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)
591
590
: Schema(Schema), Version(V),
592
591
MemProfCallStackIndexes (MemProfCallStackIndexes) {}
593
592
@@ -1039,11 +1038,10 @@ class CallStackRadixTreeBuilder {
1039
1038
CallStackRadixTreeBuilder () = default ;
1040
1039
1041
1040
// 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);
1047
1045
1048
1046
const std::vector<LinearFrameId> &getRadixArray () const { return RadixArray; }
1049
1047
0 commit comments