[llvm-branch-commits] [llvm] [llvm][AsmPrinter] Emit call graph section (PR #87576)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 18 20:13:16 PDT 2025


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 4789571d88a7476bf155214e70ae6d15ab277a2e 0754d4913701daa10cc1c15a0aa7f9216ea63e48 --extensions h,cpp -- llvm/include/llvm/CodeGen/AsmPrinter.h llvm/include/llvm/MC/MCObjectFileInfo.h llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/MC/MCObjectFileInfo.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index f81c443faf..ecfa430b5c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1728,7 +1728,7 @@ void AsmPrinter::emitCallGraphSection(const MachineFunction &MF,
   OutStreamer->emitInt64(CallSiteLabels.size());
 
   // Emit the type id and call site label pairs.
-  for (const auto& [TypeId, Label] : CallSiteLabels) {
+  for (const auto &[TypeId, Label] : CallSiteLabels) {
     OutStreamer->emitInt64(TypeId);
     OutStreamer->emitSymbolValue(Label, TM.getProgramPointerSize());
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/87576


More information about the llvm-branch-commits mailing list