[llvm] [llvm-gsymutil] Improve dumping of call sites for merged functions (PR #119759)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 13:12:44 PST 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 92a15dd7482ff4e1fae7a07f888564e5b1d53eee 1b8b97468a016c873fb92d1a1f71221e7d505fb4 --extensions h,cpp -- llvm/include/llvm/DebugInfo/GSYM/GsymReader.h llvm/lib/DebugInfo/GSYM/GsymReader.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/DebugInfo/GSYM/GsymReader.h b/llvm/include/llvm/DebugInfo/GSYM/GsymReader.h
index 03324a45a1..3d532588a7 100644
--- a/llvm/include/llvm/DebugInfo/GSYM/GsymReader.h
+++ b/llvm/include/llvm/DebugInfo/GSYM/GsymReader.h
@@ -202,7 +202,8 @@ public:
   ///
   /// \param Indent The indentation as number of spaces. Used when dumping as an
   /// item from within MergedFunctionsInfo.
-  void dump(raw_ostream &OS, const CallSiteInfoCollection &CSIC, uint32_t Indent = 0);
+  void dump(raw_ostream &OS, const CallSiteInfoCollection &CSIC,
+            uint32_t Indent = 0);
 
   /// Dump a LineTable object.
   ///
diff --git a/llvm/lib/DebugInfo/GSYM/GsymReader.cpp b/llvm/lib/DebugInfo/GSYM/GsymReader.cpp
index 2af7c654f5..71dec4277b 100644
--- a/llvm/lib/DebugInfo/GSYM/GsymReader.cpp
+++ b/llvm/lib/DebugInfo/GSYM/GsymReader.cpp
@@ -454,7 +454,8 @@ void GsymReader::dump(raw_ostream &OS, const CallSiteInfo &CSI) {
   }
 }
 
-void GsymReader::dump(raw_ostream &OS, const CallSiteInfoCollection &CSIC, uint32_t Indent) {
+void GsymReader::dump(raw_ostream &OS, const CallSiteInfoCollection &CSIC,
+                      uint32_t Indent) {
   OS << "CallSites (by relative return offset):\n";
   for (const auto &CS : CSIC.CallSites) {
     OS.indent(Indent);

``````````

</details>


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


More information about the llvm-commits mailing list