OCaml bindings: fix attributes to use all 32 bits
authorTorok Edwin <edwintorok@gmail.com>
Fri, 14 Oct 2011 20:38:24 +0000 (20:38 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Fri, 14 Oct 2011 20:38:24 +0000 (20:38 +0000)
commit0be167bab219cb178f7a6e91186c700ad48aa047
tree2c8b51e25e2c3c9b5931d245629d758885bef574
parent8da43bf60e8c27fe69033d73d440ea147d72b06d
OCaml bindings: fix attributes to use all 32 bits

OCaml's int is limited to 31 bits on 32-bit architectures, so use Int32
explicitly.
Also add an unpack_attr, and {function,param,instr}_attr functions to read
the attributes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141996 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/llvm/llvm.ml
bindings/ocaml/llvm/llvm.mli
bindings/ocaml/llvm/llvm_ocaml.c