diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-08-09 02:13:58 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-08-09 02:13:58 +0000 |
commit | f068263cbc523a3d80f08735d92b347680707aa0 (patch) | |
tree | 8aca4c1a06d1dd7ac74183351f905d49c2847ea9 | |
parent | 21491edbf4027df4db559eb1a9aa8fbf3779cfab (diff) |
Delete a redundant binding, LLVMHasInitializer.
Please use !LLVMIsDeclaration instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54572 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | bindings/ocaml/llvm/llvm.ml | 1 | ||||
-rw-r--r-- | bindings/ocaml/llvm/llvm.mli | 5 | ||||
-rw-r--r-- | include/llvm-c/Core.h | 1 | ||||
-rw-r--r-- | lib/VMCore/Core.cpp | 4 |
4 files changed, 0 insertions, 11 deletions
diff --git a/bindings/ocaml/llvm/llvm.ml b/bindings/ocaml/llvm/llvm.ml index d178dcc001..67bb2322a5 100644 --- a/bindings/ocaml/llvm/llvm.ml +++ b/bindings/ocaml/llvm/llvm.ml @@ -300,7 +300,6 @@ external define_global : string -> llvalue -> llmodule -> llvalue external lookup_global : string -> llmodule -> llvalue option = "llvm_lookup_global" external delete_global : llvalue -> unit = "llvm_delete_global" -external has_initializer : llvalue -> bool = "llvm_has_initializer" external global_initializer : llvalue -> llvalue = "LLVMGetInitializer" external set_initializer : llvalue -> llvalue -> unit = "llvm_set_initializer" external remove_initializer : llvalue -> unit = "llvm_remove_initializer" diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli index a7d26def21..1f4c4a5d6e 100644 --- a/bindings/ocaml/llvm/llvm.mli +++ b/bindings/ocaml/llvm/llvm.mli @@ -815,11 +815,6 @@ external is_global_constant : llvalue -> bool = "llvm_is_global_constant" external set_global_constant : bool -> llvalue -> unit = "llvm_set_global_constant" -(** [has_initializer gv] returns [true] if the global variable [gv] has an - initializer and [false] otherwise. - See the method [llvm::GlobalVariable::hasInitializer]. *) -external has_initializer : llvalue -> bool = "llvm_has_initializer" - (** [global_initializer gv] returns the initializer for the global variable [gv]. See the method [llvm::GlobalVariable::getInitializer]. *) external global_initializer : llvalue -> llvalue = "LLVMGetInitializer" diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 188377fd4a..7fa91cdb7a 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -392,7 +392,6 @@ LLVMValueRef LLVMGetLastGlobal(LLVMModuleRef M); LLVMValueRef LLVMGetNextGlobal(LLVMValueRef GlobalVar); LLVMValueRef LLVMGetPreviousGlobal(LLVMValueRef GlobalVar); void LLVMDeleteGlobal(LLVMValueRef GlobalVar); -int LLVMHasInitializer(LLVMValueRef GlobalVar); LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar); void LLVMSetInitializer(LLVMValueRef GlobalVar, LLVMValueRef ConstantVal); int LLVMIsThreadLocal(LLVMValueRef GlobalVar); diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 4e0ca41497..bc7137b9d0 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -632,10 +632,6 @@ void LLVMDeleteGlobal(LLVMValueRef GlobalVar) { unwrap<GlobalVariable>(GlobalVar)->eraseFromParent(); } -int LLVMHasInitializer(LLVMValueRef GlobalVar) { - return unwrap<GlobalVariable>(GlobalVar)->hasInitializer(); -} - LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar) { return wrap(unwrap<GlobalVariable>(GlobalVar)->getInitializer()); } |