Add replace_all_uses_with to ocaml.
[oota-llvm.git] / bindings / ocaml / llvm / llvm.mli
index 48c6ccd648b9bb0a1e4bf2ed1e33df1ab6e68fb1..06ffed52cfc2ae135479cda074047b79a6316e42 100644 (file)
@@ -502,6 +502,11 @@ external set_value_name : string -> llvalue -> unit = "llvm_set_value_name"
     error. See the method [llvm::Value::dump]. *)
 external dump_value : llvalue -> unit = "llvm_dump_value"
 
+(** [replace_all_uses_with old new] replaces all uses of the value [old]
+ * with the value [new]. See the method [llvm::Value::replaceAllUsesWith]. *)
+external replace_all_uses_with : llvalue -> llvalue -> unit
+                               = "LLVMReplaceAllUsesWith"
+
 
 (** {7 Operations on constants of (mostly) any type} *)