Skip to content

Commit dbf627c

Browse files
committed
Fix typo in type name
1 parent f5609aa commit dbf627c

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,18 +1090,18 @@ struct IndexedMemProfData {
10901090

10911091
// A convenience wrapper around FrameIdConverter and CallStackIdConverter for
10921092
// tests.
1093-
struct IndexedCallstackIdConveter {
1094-
IndexedCallstackIdConveter() = delete;
1095-
IndexedCallstackIdConveter(IndexedMemProfData &MemProfData)
1093+
struct IndexedCallstackIdConverter {
1094+
IndexedCallstackIdConverter() = delete;
1095+
IndexedCallstackIdConverter(IndexedMemProfData &MemProfData)
10961096
: FrameIdConv(MemProfData.Frames),
10971097
CSIdConv(MemProfData.CallStacks, FrameIdConv) {}
10981098

10991099
// Delete the copy constructor and copy assignment operator to avoid a
1100-
// situation where a copy of IndexedCallStackIdConverter gets an error in
1100+
// situation where a copy of IndexedCallstackIdConverter gets an error in
11011101
// LastUnmappedId while the original instance doesn't.
1102-
IndexedCallstackIdConveter(const IndexedCallstackIdConveter &) = delete;
1103-
IndexedCallstackIdConveter &
1104-
operator=(const IndexedCallstackIdConveter &) = delete;
1102+
IndexedCallstackIdConverter(const IndexedCallstackIdConverter &) = delete;
1103+
IndexedCallstackIdConverter &
1104+
operator=(const IndexedCallstackIdConverter &) = delete;
11051105

11061106
std::vector<Frame> operator()(CallStackId CSId) { return CSIdConv(CSId); }
11071107

llvm/unittests/ProfileData/InstrProfTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ TEST_F(InstrProfTest, test_memprof_v2_full_schema) {
457457
ASSERT_THAT_ERROR(RecordOr.takeError(), Succeeded());
458458
const memprof::MemProfRecord &Record = RecordOr.get();
459459

460-
memprof::IndexedCallstackIdConveter CSIdConv(MemProfData);
460+
memprof::IndexedCallstackIdConverter CSIdConv(MemProfData);
461461

462462
const ::llvm::memprof::MemProfRecord WantRecord =
463463
IndexedMR.toMemProfRecord(CSIdConv);
@@ -491,7 +491,7 @@ TEST_F(InstrProfTest, test_memprof_v2_partial_schema) {
491491
ASSERT_THAT_ERROR(RecordOr.takeError(), Succeeded());
492492
const memprof::MemProfRecord &Record = RecordOr.get();
493493

494-
memprof::IndexedCallstackIdConveter CSIdConv(MemProfData);
494+
memprof::IndexedCallstackIdConverter CSIdConv(MemProfData);
495495

496496
const ::llvm::memprof::MemProfRecord WantRecord =
497497
IndexedMR.toMemProfRecord(CSIdConv);
@@ -609,7 +609,7 @@ TEST_F(InstrProfTest, test_memprof_merge) {
609609

610610
std::optional<memprof::FrameId> LastUnmappedFrameId;
611611

612-
memprof::IndexedCallstackIdConveter CSIdConv(MemProfData);
612+
memprof::IndexedCallstackIdConverter CSIdConv(MemProfData);
613613

614614
const ::llvm::memprof::MemProfRecord WantRecord =
615615
IndexedMR.toMemProfRecord(CSIdConv);

llvm/unittests/ProfileData/MemProfTest.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ TEST(MemProf, IndexedMemProfRecordToMemProfRecord) {
554554
IndexedRecord.CallSites.push_back(IndexedCallSiteInfo(CS3Id));
555555
IndexedRecord.CallSites.push_back(IndexedCallSiteInfo(CS4Id));
556556

557-
IndexedCallstackIdConveter CSIdConv(MemProfData);
557+
IndexedCallstackIdConverter CSIdConv(MemProfData);
558558

559559
MemProfRecord Record = IndexedRecord.toMemProfRecord(CSIdConv);
560560

@@ -591,7 +591,7 @@ TEST(MemProf, MissingCallStackId) {
591591

592592
// Create empty maps.
593593
IndexedMemProfData MemProfData;
594-
IndexedCallstackIdConveter CSIdConv(MemProfData);
594+
IndexedCallstackIdConverter CSIdConv(MemProfData);
595595

596596
// We are only interested in errors, not the return value.
597597
(void)IndexedMR.toMemProfRecord(CSIdConv);
@@ -609,7 +609,7 @@ TEST(MemProf, MissingFrameId) {
609609
IndexedMemProfRecord IndexedMR;
610610
IndexedMR.AllocSites.emplace_back(CSId, makePartialMIB(), getHotColdSchema());
611611

612-
IndexedCallstackIdConveter CSIdConv(MemProfData);
612+
IndexedCallstackIdConverter CSIdConv(MemProfData);
613613

614614
// We are only interested in errors, not the return value.
615615
(void)IndexedMR.toMemProfRecord(CSIdConv);
@@ -763,7 +763,7 @@ TEST(MemProf, YAMLParser) {
763763
const auto &[GUID, IndexedRecord] = MemProfData.Records.front();
764764
EXPECT_EQ(GUID, 0xdeadbeef12345678ULL);
765765

766-
IndexedCallstackIdConveter CSIdConv(MemProfData);
766+
IndexedCallstackIdConverter CSIdConv(MemProfData);
767767
MemProfRecord Record = IndexedRecord.toMemProfRecord(CSIdConv);
768768

769769
ASSERT_THAT(Record.AllocSites, SizeIs(2));
@@ -814,7 +814,7 @@ TEST(MemProf, YAMLParserGUID) {
814814
const auto &[GUID, IndexedRecord] = MemProfData.Records.front();
815815
EXPECT_EQ(GUID, IndexedMemProfRecord::getGUID("_Z3fooi"));
816816

817-
IndexedCallstackIdConveter CSIdConv(MemProfData);
817+
IndexedCallstackIdConverter CSIdConv(MemProfData);
818818
MemProfRecord Record = IndexedRecord.toMemProfRecord(CSIdConv);
819819

820820
ASSERT_THAT(Record.AllocSites, SizeIs(1));

0 commit comments

Comments
 (0)