[llvm] llvm-c: Introduce 'LLVMDISubprogramReplaceType' (PR #143461)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 17:14:33 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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm-c/DebugInfo.h llvm/lib/IR/DebugInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h
index bffed4beb..c53d01b96 100644
--- a/llvm/include/llvm-c/DebugInfo.h
+++ b/llvm/include/llvm-c/DebugInfo.h
@@ -1427,7 +1427,8 @@ unsigned LLVMDISubprogramGetLine(LLVMMetadataRef Subprogram);
*
* @see DISubprogram::replaceType()
*/
-void LLVMDISubprogramReplaceType(LLVMMetadataRef Subprogram, LLVMMetadataRef SubroutineType);
+void LLVMDISubprogramReplaceType(LLVMMetadataRef Subprogram,
+ LLVMMetadataRef SubroutineType);
/**
* Get the debug location for the given instruction.
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index c26dfcde8..dee7d7ba3 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -1818,8 +1818,10 @@ unsigned LLVMDISubprogramGetLine(LLVMMetadataRef Subprogram) {
return unwrapDI<DISubprogram>(Subprogram)->getLine();
}
-void LLVMDISubprogramReplaceType(LLVMMetadataRef Subprogram, LLVMMetadataRef SubroutineType) {
- unwrapDI<DISubprogram>(Subprogram)->replaceType(unwrapDI<DISubroutineType>(SubroutineType));
+void LLVMDISubprogramReplaceType(LLVMMetadataRef Subprogram,
+ LLVMMetadataRef SubroutineType) {
+ unwrapDI<DISubprogram>(Subprogram)
+ ->replaceType(unwrapDI<DISubroutineType>(SubroutineType));
}
LLVMMetadataRef LLVMInstructionGetDebugLoc(LLVMValueRef Inst) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/143461
More information about the llvm-commits
mailing list