Go bindings: introduce Metadata.ReplaceAllUsesWith.
[oota-llvm.git] / bindings / go / llvm / ir.go
index af246fe2e65b3882e673be85cb64096c56ab02c9..178eda303bee88dfb47232bee82b91aa88d70e06 100644 (file)
@@ -1827,3 +1827,11 @@ func (pm PassManager) FinalizeFunc() bool { return C.LLVMFinalizeFunctionPassMan
 // the module provider.
 // See llvm::PassManagerBase::~PassManagerBase.
 func (pm PassManager) Dispose() { C.LLVMDisposePassManager(pm.C) }
+
+//-------------------------------------------------------------------------
+// llvm.Metadata
+//-------------------------------------------------------------------------
+
+func (md Metadata) ReplaceAllUsesWith(new Metadata) {
+       C.LLVMMetadataReplaceAllUsesWith(md.C, new.C)
+}