C/OCaml API to retrieve struct name.
[oota-llvm.git] / bindings / ocaml / llvm / llvm.mli
index ef7c986e91ca778a1455312b3e7856e0db1f8699..c0701701344d98027a36d087c436c4ee5c81c984 100644 (file)
@@ -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]. *)