From 17fa14ff8e012b623c4ae37545c39830648c5147 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 18 Oct 2018 07:40:03 +0000 Subject: [PATCH] [TI removal] Remove TerminatorInst references from bindings. For the Go bindings, this just removes the no longer useful "isa"-style wrapper. If there is a user that is interested, they can add a wrapper for `Instruction::isTerminator`. For the OCaml bindings, this is just a documentation update. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344726 91177308-0d34-0410-b5e6-96231b3b80d8 --- bindings/go/llvm/ir.go | 1 - bindings/ocaml/llvm/llvm.mli | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bindings/go/llvm/ir.go b/bindings/go/llvm/ir.go index 0f4877429cc..cad21814cd7 100644 --- a/bindings/go/llvm/ir.go +++ b/bindings/go/llvm/ir.go @@ -739,7 +739,6 @@ func (v Value) IsAPHINode() (rv Value) { rv.C = C.LLVMIsAPHINode(v.C func (v Value) IsASelectInst() (rv Value) { rv.C = C.LLVMIsASelectInst(v.C); return } func (v Value) IsAShuffleVectorInst() (rv Value) { rv.C = C.LLVMIsAShuffleVectorInst(v.C); return } func (v Value) IsAStoreInst() (rv Value) { rv.C = C.LLVMIsAStoreInst(v.C); return } -func (v Value) IsATerminatorInst() (rv Value) { rv.C = C.LLVMIsATerminatorInst(v.C); return } func (v Value) IsABranchInst() (rv Value) { rv.C = C.LLVMIsABranchInst(v.C); return } func (v Value) IsAInvokeInst() (rv Value) { rv.C = C.LLVMIsAInvokeInst(v.C); return } func (v Value) IsAReturnInst() (rv Value) { rv.C = C.LLVMIsAReturnInst(v.C); return } diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli index 97b6a695fa2..f12eb6efa61 100644 --- a/bindings/ocaml/llvm/llvm.mli +++ b/bindings/ocaml/llvm/llvm.mli @@ -1887,16 +1887,16 @@ val set_volatile : bool -> llvalue -> unit val is_terminator : llvalue -> bool (** [successor v i] returns the successor at index [i] for the value [v]. - See the method [llvm::TerminatorInst::getSuccessor]. *) + See the method [llvm::Instruction::getSuccessor]. *) val successor : llvalue -> int -> llbasicblock (** [set_successor v i o] sets the successor of the value [v] at the index [i] to the value [o]. - See the method [llvm::TerminatorInst::setSuccessor]. *) + See the method [llvm::Instruction::setSuccessor]. *) val set_successor : llvalue -> int -> llbasicblock -> unit (** [num_successors v] returns the number of successors for the value [v]. - See the method [llvm::TerminatorInst::getNumSuccessors]. *) + See the method [llvm::Instruction::getNumSuccessors]. *) val num_successors : llvalue -> int (** [successors v] returns the successors of [v]. *) -- 2.11.0