aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/InstrProfTest.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-12-08 11:34:29 -0800
committerGitHub <noreply@github.com>2024-12-08 11:34:29 -0800
commitb6dfdd2b1ecc84c77ea4eec3713caa07a1cab198 (patch)
tree7f1af32b76babce4e4fc4cbd7e3c3f63829a0a2a /llvm/unittests/ProfileData/InstrProfTest.cpp
parentb0f06769e6e2ea2bc4ce3554ebf66384a1236106 (diff)
downloadllvm-b6dfdd2b1ecc84c77ea4eec3713caa07a1cab198.zip
llvm-b6dfdd2b1ecc84c77ea4eec3713caa07a1cab198.tar.gz
llvm-b6dfdd2b1ecc84c77ea4eec3713caa07a1cab198.tar.bz2
[memprof] Drop memprof:: in unit tests (NFC) (#119113)
This patch replaces memprof::Foo with Foo if we have corresponding: using llvm::memprof::Foo;
Diffstat (limited to 'llvm/unittests/ProfileData/InstrProfTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/InstrProfTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 6df2ec1..ac872d8 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -393,7 +393,7 @@ IndexedMemProfRecord
makeRecordV2(std::initializer_list<::llvm::memprof::CallStackId> AllocFrames,
std::initializer_list<::llvm::memprof::CallStackId> CallSiteFrames,
const MemInfoBlock &Block, const memprof::MemProfSchema &Schema) {
- llvm::memprof::IndexedMemProfRecord MR;
+ IndexedMemProfRecord MR;
for (const auto &CSId : AllocFrames)
MR.AllocSites.emplace_back(CSId, Block, Schema);
for (const auto &CSId : CallSiteFrames)
@@ -533,7 +533,7 @@ TEST_F(InstrProfTest, test_caller_callee_pairs) {
/*AllocFrames=*/{0x111, 0x222},
/*CallSiteFrames=*/{}, MIB, memprof::getHotColdSchema());
- memprof::IndexedMemProfData MemProfData;
+ IndexedMemProfData MemProfData;
MemProfData.Frames.try_emplace(0, 0x123, 1, 2, false);
MemProfData.Frames.try_emplace(1, 0x234, 3, 4, true);
MemProfData.Frames.try_emplace(2, 0x123, 5, 6, false);