]> git.lizzy.rs Git - rust.git/blob - src/librustc_trans/trans/mod.rs
doc: remove incomplete sentence
[rust.git] / src / librustc_trans / trans / mod.rs
1 // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 use llvm::{ContextRef, ModuleRef};
12 use metadata::common::LinkMeta;
13 use middle::dependency_format;
14
15 pub use self::base::trans_crate;
16 pub use self::context::CrateContext;
17 pub use self::common::gensym_name;
18
19 mod doc;
20 mod macros;
21 mod inline;
22 mod monomorphize;
23 mod controlflow;
24 mod glue;
25 mod datum;
26 mod callee;
27 mod expr;
28 mod common;
29 mod context;
30 mod consts;
31 mod type_of;
32 mod build;
33 mod builder;
34 mod base;
35 mod _match;
36 mod closure;
37 mod tvec;
38 mod meth;
39 mod cabi;
40 mod cabi_x86;
41 mod cabi_x86_64;
42 mod cabi_x86_win64;
43 mod cabi_arm;
44 mod cabi_aarch64;
45 mod cabi_mips;
46 mod foreign;
47 mod intrinsic;
48 mod debuginfo;
49 mod machine;
50 mod adt;
51 mod asm;
52 mod type_;
53 mod value;
54 mod basic_block;
55 mod llrepr;
56 mod cleanup;
57
58 #[deriving(Copy)]
59 pub struct ModuleTranslation {
60     pub llcx: ContextRef,
61     pub llmod: ModuleRef,
62 }
63
64 unsafe impl Send for ModuleTranslation { }
65 unsafe impl Sync for ModuleTranslation { }
66
67 pub struct CrateTranslation {
68     pub modules: Vec<ModuleTranslation>,
69     pub metadata_module: ModuleTranslation,
70     pub link: LinkMeta,
71     pub metadata: Vec<u8>,
72     pub reachable: Vec<String>,
73     pub crate_formats: dependency_format::Dependencies,
74     pub no_builtins: bool,
75 }