]> git.lizzy.rs Git - rust.git/blob - src/librustc_trans/trans/mod.rs
Add a doctest for the std::string::as_string method.
[rust.git] / src / librustc_trans / trans / mod.rs
1 // Copyright 2012-2013 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_mips;
45 mod foreign;
46 mod intrinsic;
47 mod debuginfo;
48 mod machine;
49 mod adt;
50 mod asm;
51 mod type_;
52 mod value;
53 mod basic_block;
54 mod llrepr;
55 mod cleanup;
56
57 pub struct ModuleTranslation {
58     pub llcx: ContextRef,
59     pub llmod: ModuleRef,
60 }
61
62 pub struct CrateTranslation {
63     pub modules: Vec<ModuleTranslation>,
64     pub metadata_module: ModuleTranslation,
65     pub link: LinkMeta,
66     pub metadata: Vec<u8>,
67     pub reachable: Vec<String>,
68     pub crate_formats: dependency_format::Dependencies,
69     pub no_builtins: bool,
70 }
71