aboutsummaryrefslogtreecommitdiff
path: root/src/boot/llvm/llemit.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-29 16:27:13 -0800
committerGraydon Hoare <[email protected]>2010-12-29 16:27:19 -0800
commit454bf428efa6f581f94f817d9f044d6934af1a0f (patch)
treee8726997e920a608d80526ea06fa7db9bd599594 /src/boot/llvm/llemit.ml
parentrustc: Make parametric return types go through an out pointer (diff)
downloadrust-454bf428efa6f581f94f817d9f044d6934af1a0f.tar.xz
rust-454bf428efa6f581f94f817d9f044d6934af1a0f.zip
Remove LLVM rustboot backend.
Diffstat (limited to 'src/boot/llvm/llemit.ml')
-rw-r--r--src/boot/llvm/llemit.ml36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/boot/llvm/llemit.ml b/src/boot/llvm/llemit.ml
deleted file mode 100644
index 2b229fde..00000000
--- a/src/boot/llvm/llemit.ml
+++ /dev/null
@@ -1,36 +0,0 @@
-(*
- * LLVM emitter.
- *)
-
-(* The top-level interface to the LLVM translation subsystem. *)
-let trans_and_process_crate
- (sess:Session.sess)
- (sem_cx:Semant.ctxt)
- (crate:Ast.crate)
- : unit =
- let llcontext = Llvm.create_context () in
- let emit_file (llmod:Llvm.llmodule) : unit =
- let filename = Session.filename_of sess.Session.sess_out in
- if not (Llvm_bitwriter.write_bitcode_file llmod filename)
- then raise (Failure ("failed to write the LLVM bitcode '" ^ filename
- ^ "'"))
- in
- let llmod = Lltrans.trans_crate sem_cx llcontext sess crate in
- begin
- try
- emit_file llmod
- with e -> Llvm.dispose_module llmod; raise e
- end;
- Llvm.dispose_module llmod;
- Llvm.dispose_context llcontext
-;;
-
-(*
- * Local Variables:
- * fill-column: 78;
- * indent-tabs-mode: nil
- * buffer-file-coding-system: utf-8-unix
- * compile-command: "make -k -C ../.. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
- * End:
- *)
-