[llvm] [dyndbg][LLVM] Implement dynamic debugging support (PR #194854)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 06:19:53 PDT 2026


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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/Transforms/Utils/DynamicDebugging.h llvm/lib/Transforms/Utils/DynamicDebugging.cpp llvm/unittests/Transforms/Utils/DynamicDebuggingTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/unittests/Transforms/Utils/DynamicDebuggingTest.cpp b/llvm/unittests/Transforms/Utils/DynamicDebuggingTest.cpp
index 6f29df9da..df28b3e0e 100644
--- a/llvm/unittests/Transforms/Utils/DynamicDebuggingTest.cpp
+++ b/llvm/unittests/Transforms/Utils/DynamicDebuggingTest.cpp
@@ -517,7 +517,8 @@ TEST(DynamicDebugging, DiscardableGlobal) {
   GlobalVariable *DiscardableUsed = M->getGlobalVariable("discardable_used");
   ASSERT_TRUE(DiscardableUsed);
 
-  // Expect to see @llvm.compiler.used = appending global [1 x ptr] [ptr @discardable_used].
+  // Expect to see @llvm.compiler.used = appending global [1 x ptr] [ptr
+  // @discardable_used].
   EXPECT_EQ(CompilerUsedArr->getNumOperands(), 1u);
   EXPECT_TRUE(llvm::find(CompilerUsedArr->operands(), DiscardableUsed));
 }

``````````

</details>


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


More information about the llvm-commits mailing list