[PATCH] D104794: Expose `DIBuilder::finalizeSubprogram()` through the LLVM C API
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 21:00:08 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG16661b1a3c4c: Expose `DIBuilder::finalizeSubprogram()` through the LLVM C API (authored by koutheir, committed by dblaikie).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104794/new/
https://reviews.llvm.org/D104794
Files:
llvm/include/llvm-c/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp
Index: llvm/lib/IR/DebugInfo.cpp
===================================================================
--- llvm/lib/IR/DebugInfo.cpp
+++ llvm/lib/IR/DebugInfo.cpp
@@ -909,6 +909,11 @@
unwrap(Builder)->finalize();
}
+void LLVMDIBuilderFinalizeSubprogram(LLVMDIBuilderRef Builder,
+ LLVMMetadataRef subprogram) {
+ unwrap(Builder)->finalizeSubprogram(unwrapDI<DISubprogram>(subprogram));
+}
+
LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(
LLVMDIBuilderRef Builder, LLVMDWARFSourceLanguage Lang,
LLVMMetadataRef FileRef, const char *Producer, size_t ProducerLen,
Index: llvm/include/llvm-c/DebugInfo.h
===================================================================
--- llvm/include/llvm-c/DebugInfo.h
+++ llvm/include/llvm-c/DebugInfo.h
@@ -226,6 +226,13 @@
*/
void LLVMDIBuilderFinalize(LLVMDIBuilderRef Builder);
+/**
+ * Finalize a specific subprogram.
+ * No new variables may be added to this subprogram afterwards.
+ */
+void LLVMDIBuilderFinalizeSubprogram(LLVMDIBuilderRef Builder,
+ LLVMMetadataRef Subprogram);
+
/**
* A CompileUnit provides an anchor for all debugging
* information generated during this instance of compilation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104794.376419.patch
Type: text/x-patch
Size: 1243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211001/123b5e9f/attachment.bin>
More information about the llvm-commits
mailing list