From a47490f5430ebeb4945c17f55975dec208d1a0cd Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 12 Dec 2024 10:59:03 -0800 Subject: [PATCH] [memprof] clang-format MemProf-related files (NFC) --- llvm/lib/ProfileData/MemProfReader.cpp | 4 ++-- llvm/lib/Transforms/Instrumentation/MemProfiler.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/ProfileData/MemProfReader.cpp b/llvm/lib/ProfileData/MemProfReader.cpp index 9dd43d34f2a0b..10c36f25c4b79 100644 --- a/llvm/lib/ProfileData/MemProfReader.cpp +++ b/llvm/lib/ProfileData/MemProfReader.cpp @@ -596,8 +596,8 @@ Error RawMemProfReader::symbolizeAndFilterStackFrames( // Drop the entries where the callstack is empty. for (const uint64_t Id : EntriesToErase) { StackMap.erase(Id); - if(CallstackProfileData[Id].AccessHistogramSize > 0) - free((void*) CallstackProfileData[Id].AccessHistogram); + if (CallstackProfileData[Id].AccessHistogramSize > 0) + free((void *)CallstackProfileData[Id].AccessHistogram); CallstackProfileData.erase(Id); } diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp index db8999911b7f9..fea45d53b2eb4 100644 --- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp @@ -152,7 +152,7 @@ static cl::opt ClDebugMax("memprof-debug-max", cl::desc("Debug max inst"), // override these hints anyway. static cl::opt ClMemProfMatchHotColdNew( "memprof-match-hot-cold-new", - cl::desc( + cl::desc( "Match allocation profiles onto existing hot/cold operator new calls"), cl::Hidden, cl::init(false));