[llvm] [memprof] Rename RawMemProfReader.{cpp,h} to MemProfReader.{cpp,h} (NFC) (PR #88200)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 9 14:31:37 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff e248f0df14e407b8ae98cd31fb2e77fc058f3c7e 0ebebe802e21908b2ce4fdacd5efcce4f3022c15 -- llvm/include/llvm/ProfileData/MemProfReader.h llvm/include/llvm/ProfileData/RawMemProfReader.h llvm/tools/llvm-profdata/llvm-profdata.cpp llvm/unittests/ProfileData/MemProfTest.cpp llvm/lib/ProfileData/MemProfReader.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/ProfileData/MemProfReader.cpp b/llvm/lib/ProfileData/MemProfReader.cpp
index e72f74dfe4..4ccec26597 100644
--- a/llvm/lib/ProfileData/MemProfReader.cpp
+++ b/llvm/lib/ProfileData/MemProfReader.cpp
@@ -295,8 +295,8 @@ Error RawMemProfReader::initialize(std::unique_ptr<MemoryBuffer> DataBuffer) {
// Check whether the profiled binary was built with position independent code
// (PIC). Perform sanity checks for assumptions we rely on to simplify
// symbolization.
- auto* Elf64LEObject = llvm::cast<llvm::object::ELF64LEObjectFile>(ElfObject);
- const llvm::object::ELF64LEFile& ElfFile = Elf64LEObject->getELFFile();
+ auto *Elf64LEObject = llvm::cast<llvm::object::ELF64LEObjectFile>(ElfObject);
+ const llvm::object::ELF64LEFile &ElfFile = Elf64LEObject->getELFFile();
auto PHdrsOr = ElfFile.program_headers();
if (!PHdrsOr)
return report(
``````````
</details>
https://github.com/llvm/llvm-project/pull/88200
More information about the llvm-commits
mailing list