[llvm] [RemoveDIs] Update DIBuilder C API with DbgRecord functions [2/2] (PR #85657)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 08:09:52 PDT 2024


OCHyams wrote:

> Just to confirm, the intent is that after this LLVM's DIBuilder (for both C++ and C APIs) will always create debug record modules, regardless of flags passed?

Yeah that's right. For now it's up to users of the API to either continue to use `LLVMDIBuilderInsert...` functions, which will now insert DbgRecords, or to call the `Intrinsic` versions explicitly to insert debug intrinsics.

`LLVMIsNewDbgInfoFormat` and `LLVMSetIsNewDbgInfoFormat` can be used to query and change the debug info format for the module too.

In the future, we'll remove all the explicit function versions that have been added, so that the only functions that remain are the originals (and they'll be emitting DbgRecords, because there will be no debug intrinsic alternative).

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


More information about the llvm-commits mailing list