summaryrefslogtreecommitdiff
path: root/bindings/ocaml/llvm/llvm.mli
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2011-10-06 12:13:28 +0000
committerTorok Edwin <edwintorok@gmail.com>2011-10-06 12:13:28 +0000
commitff12c99d131789ccb9e8739963f4d8e0e95667d4 (patch)
tree6521aeecbb2e3bd1cb4ddde0ee50ac15ab99e548 /bindings/ocaml/llvm/llvm.mli
parent4917ec9ec775d7bc7fbc3362b4c576c32b7617f4 (diff)
downloadllvm-ff12c99d131789ccb9e8739963f4d8e0e95667d4.tar.gz
llvm-ff12c99d131789ccb9e8739963f4d8e0e95667d4.tar.bz2
llvm-ff12c99d131789ccb9e8739963f4d8e0e95667d4.tar.xz
ocaml/C bindings: type->isSized()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm/llvm.mli')
-rw-r--r--bindings/ocaml/llvm/llvm.mli5
1 files changed, 5 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index a5e5c850d6..0f1e9a9017 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -271,6 +271,11 @@ val set_module_inline_asm : llmodule -> string -> unit
See the method [llvm::Type::getTypeID]. *)
val classify_type : lltype -> TypeKind.t
+(** [type_is_sized ty] returns whether the type has a size or not.
+ * If it doesn't then it is not safe to call the [TargetData::] methods on it.
+ * *)
+val type_is_sized : lltype -> bool
+
(** [type_context ty] returns the {!llcontext} corresponding to the type [ty].
See the method [llvm::Type::getContext]. *)
val type_context : lltype -> llcontext