mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-03 08:51:43 +00:00
Delete a redundant binding, LLVMHasInitializer.
Please use !LLVMIsDeclaration instead. llvm-svn: 54572
This commit is contained in:
parent
b3806a3386
commit
78a53c516d
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user