diff options
author | Snehasish Kumar <snehasishk@google.com> | 2022-02-14 11:42:00 -0800 |
---|---|---|
committer | Snehasish Kumar <snehasishk@google.com> | 2022-02-14 11:42:58 -0800 |
commit | 857ec0d01f8021ff0d9540fcbf6ff24e29868ba4 (patch) | |
tree | cd07868def73421542d3e4f34c8b99b87247b194 /llvm/unittests/ProfileData/MemProfTest.cpp | |
parent | e6999040f5758f89a64b6232119b775b7bd1c85b (diff) | |
download | llvm-857ec0d01f8021ff0d9540fcbf6ff24e29868ba4.zip llvm-857ec0d01f8021ff0d9540fcbf6ff24e29868ba4.tar.gz llvm-857ec0d01f8021ff0d9540fcbf6ff24e29868ba4.tar.bz2 |
Revert "[memprof] Refactor out the MemInfoBlock into a macro based def."
This reverts commit 9def83c6d02944b2931efd50cd2491953a772aab. [4/4]
Diffstat (limited to 'llvm/unittests/ProfileData/MemProfTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/MemProfTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/ProfileData/MemProfTest.cpp b/llvm/unittests/ProfileData/MemProfTest.cpp index 09ffe8f..c63d2ec 100644 --- a/llvm/unittests/ProfileData/MemProfTest.cpp +++ b/llvm/unittests/ProfileData/MemProfTest.cpp @@ -123,8 +123,8 @@ TEST(MemProf, FillsValue) { CSM[0x2] = {0x6000, 0x2000}; llvm::MapVector<uint64_t, MemInfoBlock> Prof; - Prof[0x1].AllocCount = 1; - Prof[0x2].AllocCount = 2; + Prof[0x1].alloc_count = 1; + Prof[0x2].alloc_count = 2; auto Seg = makeSegments(); @@ -136,8 +136,8 @@ TEST(MemProf, FillsValue) { } EXPECT_EQ(Records.size(), 2U); - EXPECT_EQ(Records[0].Info.AllocCount, 1U); - EXPECT_EQ(Records[1].Info.AllocCount, 2U); + EXPECT_EQ(Records[0].Info.alloc_count, 1U); + EXPECT_EQ(Records[1].Info.alloc_count, 2U); EXPECT_THAT(Records[0].CallStack[0], FrameContains("foo", 5U, 30U, false)); EXPECT_THAT(Records[0].CallStack[1], FrameContains("bar", 51U, 20U, true)); |