summaryrefslogtreecommitdiff
path: root/bindings/ocaml/llvm/llvm.mli
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-03 08:27:45 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-03 08:27:45 +0000
commitf00a9e0f79541538df7e3af2e83de37f40d904cc (patch)
tree3252f086ab4f9d785465fe4d1344ecbba5b48c96 /bindings/ocaml/llvm/llvm.mli
parent88d74c3093de563408ceb834d999613038195e98 (diff)
downloadllvm-f00a9e0f79541538df7e3af2e83de37f40d904cc.tar.gz
llvm-f00a9e0f79541538df7e3af2e83de37f40d904cc.tar.bz2
llvm-f00a9e0f79541538df7e3af2e83de37f40d904cc.tar.xz
[OCaml] Implement Llvm.MemoryBuffer.{of_string,as_string}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm/llvm.mli')
-rw-r--r--bindings/ocaml/llvm/llvm.mli7
1 files changed, 7 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index c4375dc452..e90fafe524 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -2345,6 +2345,13 @@ module MemoryBuffer : sig
(** [of_stdin ()] is the memory buffer containing the contents of standard input.
If standard input is empty, then [IoError msg] is raised. *)
val of_stdin : unit -> llmemorybuffer
+
+ (** [of_string ~name s] is the memory buffer containing the contents of string [s].
+ The name of memory buffer is set to [name] if it is provided. *)
+ val of_string : ?name:string -> string -> llmemorybuffer
+
+ (** [as_string mb] is the string containing the contents of memory buffer [mb]. *)
+ val as_string : llmemorybuffer -> string
(** Disposes of a memory buffer. *)
val dispose : llmemorybuffer -> unit