[llvm] [IR] Remove IRBuilder AddMetadataToInst (PR #202280)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 01:13:23 PDT 2026


================
@@ -3507,10 +3507,6 @@ void LLVMSetInstDebugLocation(LLVMBuilderRef Builder, LLVMValueRef Inst) {
   unwrap(Builder)->SetInstDebugLocation(unwrap<Instruction>(Inst));
 }
 
-void LLVMAddMetadataToInst(LLVMBuilderRef Builder, LLVMValueRef Inst) {
-  unwrap(Builder)->AddMetadataToInst(unwrap<Instruction>(Inst));
----------------
nikic wrote:

As the C API doesn't expose CollectMetadataToCopy(), isn't this function just equivalent to SetInstDebugLocation(), in which case we can keep it with that implementation?

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


More information about the llvm-commits mailing list