diff options
author | Torok Edwin <edwintorok@gmail.com> | 2011-10-06 12:12:50 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2011-10-06 12:12:50 +0000 |
commit | c44943ed4f4f2d44b6668e6b51eb355f8310660c (patch) | |
tree | 315bd17a2494cbef968ab40d0fe70abf8179f458 /bindings/ocaml/llvm/llvm.mli | |
parent | 624c5edcd485a210faa61113f38938bdb6a0cc58 (diff) | |
download | llvm-c44943ed4f4f2d44b6668e6b51eb355f8310660c.tar.gz llvm-c44943ed4f4f2d44b6668e6b51eb355f8310660c.tar.bz2 llvm-c44943ed4f4f2d44b6668e6b51eb355f8310660c.tar.xz |
C/OCaml API to retrieve struct name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm/llvm.mli')
-rw-r--r-- | bindings/ocaml/llvm/llvm.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli index ef7c986e91..c070170134 100644 --- a/bindings/ocaml/llvm/llvm.mli +++ b/bindings/ocaml/llvm/llvm.mli @@ -372,6 +372,10 @@ val struct_type : llcontext -> lltype array -> lltype [llvm::StructType::get]. *) val packed_struct_type : llcontext -> lltype array -> lltype +(** [struct_name ty] returns the name of the named structure type [ty], + * or None if the structure type is not named *) +val struct_name : lltype -> string option + (** [struct_element_types sty] returns the constituent types of the struct type [sty]. See the method [llvm::StructType::getElementType]. *) |