[llvm] [RemoveDIs] Add a 'BeforeDbgRecords' parameter to C API isnt insertion functions (PR #92417)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 09:07:52 PDT 2024


================
@@ -1152,6 +1154,7 @@ let builder_before context i = builder_at context (Before i)
 let builder_at_end context bb = builder_at context (At_end bb)
 
 let position_before i = position_builder (Before i)
+let position_before_dbg_records i = position_builder2 (Before i) true
----------------
OCHyams wrote:

I've side-stepped this in the rework that I've just uploaded - now there are just two separate functions for inserting after/before debug records - there's no bool parameter flying around.

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


More information about the llvm-commits mailing list