llvm.org GIT mirror llvm / f068263
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 Gordon Henriksen 12 years ago
4 changed file(s) with 0 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
299299 external lookup_global : string -> llmodule -> llvalue option
300300 = "llvm_lookup_global"
301301 external delete_global : llvalue -> unit = "llvm_delete_global"
302 external has_initializer : llvalue -> bool = "llvm_has_initializer"
303302 external global_initializer : llvalue -> llvalue = "LLVMGetInitializer"
304303 external set_initializer : llvalue -> llvalue -> unit = "llvm_set_initializer"
305304 external remove_initializer : llvalue -> unit = "llvm_remove_initializer"
813813 See the method [llvm::GlobalVariable::setConstant]. *)
814814 external set_global_constant : bool -> llvalue -> unit
815815 = "llvm_set_global_constant"
816
817 (** [has_initializer gv] returns [true] if the global variable [gv] has an
818 initializer and [false] otherwise.
819 See the method [llvm::GlobalVariable::hasInitializer]. *)
820 external has_initializer : llvalue -> bool = "llvm_has_initializer"
821816
822817 (** [global_initializer gv] returns the initializer for the global variable
823818 [gv]. See the method [llvm::GlobalVariable::getInitializer]. *)
391391 LLVMValueRef LLVMGetNextGlobal(LLVMValueRef GlobalVar);
392392 LLVMValueRef LLVMGetPreviousGlobal(LLVMValueRef GlobalVar);
393393 void LLVMDeleteGlobal(LLVMValueRef GlobalVar);
394 int LLVMHasInitializer(LLVMValueRef GlobalVar);
395394 LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar);
396395 void LLVMSetInitializer(LLVMValueRef GlobalVar, LLVMValueRef ConstantVal);
397396 int LLVMIsThreadLocal(LLVMValueRef GlobalVar);
631631 unwrap(GlobalVar)->eraseFromParent();
632632 }
633633
634 int LLVMHasInitializer(LLVMValueRef GlobalVar) {
635 return unwrap(GlobalVar)->hasInitializer();
636 }
637
638634 LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar) {
639635 return wrap(unwrap(GlobalVar)->getInitializer());
640636 }