summaryrefslogtreecommitdiffstats
path: root/llvm/bindings
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2014-11-03 09:51:47 +0000
committerPeter Zotov <whitequark@whitequark.org>2014-11-03 09:51:47 +0000
commitc87483851032e2d7a32f0b7beb2e9c2237255d31 (patch)
tree0af9df5cf88f068b8c4581776e17851ec566aa2f /llvm/bindings
parent918617000fa675d6c104a1c1d8dfe74d28bceb63 (diff)
downloadbcm5719-llvm-c87483851032e2d7a32f0b7beb2e9c2237255d31.tar.gz
bcm5719-llvm-c87483851032e2d7a32f0b7beb2e9c2237255d31.zip
[OCaml] Don't use deprecated non-caml_namespaced functions.
llvm-svn: 221143
Diffstat (limited to 'llvm/bindings')
-rw-r--r--llvm/bindings/ocaml/llvm/llvm_ocaml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/bindings/ocaml/llvm/llvm_ocaml.c b/llvm/bindings/ocaml/llvm/llvm_ocaml.c
index d8682880033..aaffb560116 100644
--- a/llvm/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/llvm/bindings/ocaml/llvm/llvm_ocaml.c
@@ -34,14 +34,14 @@ value llvm_string_of_message(char* Message) {
void llvm_raise(value Prototype, char *Message) {
CAMLparam1(Prototype);
- raise_with_arg(Prototype, llvm_string_of_message(Message));
+ caml_raise_with_arg(Prototype, llvm_string_of_message(Message));
CAMLnoreturn;
}
static value llvm_fatal_error_handler;
static void llvm_fatal_error_trampoline(const char *Reason) {
- callback(llvm_fatal_error_handler, copy_string(Reason));
+ callback(llvm_fatal_error_handler, caml_copy_string(Reason));
}
CAMLprim value llvm_install_fatal_error_handler(value Handler) {
@@ -155,7 +155,7 @@ CAMLprim value llvm_dispose_module(LLVMModuleRef M) {
/* llmodule -> string */
CAMLprim value llvm_target_triple(LLVMModuleRef M) {
- return copy_string(LLVMGetTarget(M));
+ return caml_copy_string(LLVMGetTarget(M));
}
/* string -> llmodule -> unit */
@@ -166,7 +166,7 @@ CAMLprim value llvm_set_target_triple(value Trip, LLVMModuleRef M) {
/* llmodule -> string */
CAMLprim value llvm_data_layout(LLVMModuleRef M) {
- return copy_string(LLVMGetDataLayout(M));
+ return caml_copy_string(LLVMGetDataLayout(M));
}
/* string -> llmodule -> unit */
@@ -539,7 +539,7 @@ CAMLprim value llvm_classify_value(LLVMValueRef Val) {
/* llvalue -> string */
CAMLprim value llvm_value_name(LLVMValueRef Val) {
- return copy_string(LLVMGetValueName(Val));
+ return caml_copy_string(LLVMGetValueName(Val));
}
/* string -> llvalue -> unit */
@@ -937,7 +937,7 @@ CAMLprim value llvm_set_linkage(value Linkage, LLVMValueRef Global) {
/* llvalue -> string */
CAMLprim value llvm_section(LLVMValueRef Global) {
- return copy_string(LLVMGetSection(Global));
+ return caml_copy_string(LLVMGetSection(Global));
}
/* string -> llvalue -> unit */
@@ -1220,7 +1220,7 @@ CAMLprim value llvm_gc(LLVMValueRef Fn) {
CAMLlocal2(Name, Option);
if ((GC = LLVMGetGC(Fn))) {
- Name = copy_string(GC);
+ Name = caml_copy_string(GC);
Option = alloc(1, 0);
Field(Option, 0) = Name;
OpenPOWER on IntegriCloud