[llvm] [RemoveDIs] Update DIBuilder C API with DbgRecord functions. (PR #95535)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 06:05:08 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 e910f61fb1810020ab68fdf6479bde03e702e013 b40d1e89d7f2ddb99e1a7276b8eae1d0b04258d7 -- llvm/bindings/ocaml/debuginfo/debuginfo_ocaml.c llvm/include/llvm-c/DebugInfo.h llvm/lib/IR/DebugInfo.cpp llvm/tools/llvm-c-test/debuginfo.c llvm/tools/llvm-c-test/llvm-c-test.h llvm/tools/llvm-c-test/main.c
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-c-test/debuginfo.c b/llvm/tools/llvm-c-test/debuginfo.c
index d7c8d2bb55..89a3473932 100644
--- a/llvm/tools/llvm-c-test/debuginfo.c
+++ b/llvm/tools/llvm-c-test/debuginfo.c
@@ -144,9 +144,8 @@ int llvm_test_dibuilder() {
     LLVMDIBuilderCreateParameterVariable(DIB, FunctionMetadata, "b", 1, 2, File,
                                          42, Int64Ty, true, 0);
 
-  LLVMMetadataRef FooParamVar3 =
-    LLVMDIBuilderCreateParameterVariable(DIB, FunctionMetadata, "c", 1, 3, File,
-                                         42, VectorTy, true, 0);
+  LLVMMetadataRef FooParamVar3 = LLVMDIBuilderCreateParameterVariable(
+      DIB, FunctionMetadata, "c", 1, 3, File, 42, VectorTy, true, 0);
 
   LLVMSetSubprogram(FooFunction, FunctionMetadata);
 
@@ -163,9 +162,9 @@ int llvm_test_dibuilder() {
   LLVMValueRef FooVal1 = LLVMConstInt(LLVMInt64Type(), 0, false);
   LLVMMetadataRef FooVarValueExpr =
     LLVMDIBuilderCreateConstantValueExpression(DIB, 0);
-  
-  LLVMDIBuilderInsertDbgValueRecordAtEnd(
-      DIB, FooVal1, FooVar1, FooVarValueExpr, FooVarsLocation, FooVarBlock);
+
+  LLVMDIBuilderInsertDbgValueRecordAtEnd(DIB, FooVal1, FooVar1, FooVarValueExpr,
+                                         FooVarsLocation, FooVarBlock);
 
   LLVMMetadataRef MacroFile =
       LLVMDIBuilderCreateTempMacroFile(DIB, NULL, 0, File);

``````````

</details>


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


More information about the llvm-commits mailing list