[llvm] [AsmPrinter] Reduce AsmPrinterHandlers virt. fn calls (PR #96785)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 02:50:18 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 54cb5ca9f48fc542b920662a0eee7c0e6f35bee0 eebc570fc697d55dff998cc0f076db7f4d08abbb -- llvm/include/llvm/CodeGen/AsmPrinter.h llvm/include/llvm/CodeGen/AsmPrinterHandler.h llvm/include/llvm/CodeGen/DebugHandlerBase.h llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp llvm/lib/CodeGen/AsmPrinter/EHStreamer.h llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h llvm/lib/CodeGen/AsmPrinter/WinCFGuard.h llvm/lib/Target/BPF/BPFAsmPrinter.cpp llvm/lib/Target/BPF/BTFDebug.h llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h b/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h
index c9aaed4800..35461e53fb 100644
--- a/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h
+++ b/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h
@@ -28,7 +28,7 @@ class PseudoProbeHandler {
   DenseMap<StringRef, uint64_t> NameGuidMap;
 
 public:
-  PseudoProbeHandler(AsmPrinter *A) : Asm(A){};
+  PseudoProbeHandler(AsmPrinter *A) : Asm(A) {};
 
   void emitPseudoProbe(uint64_t Guid, uint64_t Index, uint64_t Type,
                        uint64_t Attr, const DILocation *DebugLoc);

``````````

</details>


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


More information about the llvm-commits mailing list