@@ -51,45 +51,45 @@ pub struct CrateContext {
51
51
pub link_meta : LinkMeta ,
52
52
pub drop_glues : RefCell < HashMap < ty:: t , ValueRef > > ,
53
53
pub tydescs : RefCell < HashMap < ty:: t , @tydesc_info > > ,
54
- // Set when running emit_tydescs to enforce that no more tydescs are
55
- // created.
54
+ /// Set when running emit_tydescs to enforce that no more tydescs are
55
+ /// created.
56
56
pub finished_tydescs : Cell < bool > ,
57
- // Track mapping of external ids to local items imported for inlining
57
+ /// Track mapping of external ids to local items imported for inlining
58
58
pub external : RefCell < DefIdMap < Option < ast:: NodeId > > > ,
59
- // Backwards version of the `external` map (inlined items to where they
60
- // came from)
59
+ /// Backwards version of the `external` map (inlined items to where they
60
+ /// came from)
61
61
pub external_srcs : RefCell < NodeMap < ast:: DefId > > ,
62
- // A set of static items which cannot be inlined into other crates. This
63
- // will pevent in IIItem() structures from being encoded into the metadata
64
- // that is generated
62
+ /// A set of static items which cannot be inlined into other crates. This
63
+ /// will pevent in IIItem() structures from being encoded into the metadata
64
+ /// that is generated
65
65
pub non_inlineable_statics : RefCell < NodeSet > ,
66
- // Cache instances of monomorphized functions
66
+ /// Cache instances of monomorphized functions
67
67
pub monomorphized : RefCell < HashMap < mono_id , ValueRef > > ,
68
68
pub monomorphizing : RefCell < DefIdMap < uint > > ,
69
- // Cache generated vtables
69
+ /// Cache generated vtables
70
70
pub vtables : RefCell < HashMap < ( ty:: t , mono_id ) , ValueRef > > ,
71
- // Cache of constant strings,
71
+ /// Cache of constant strings,
72
72
pub const_cstr_cache : RefCell < HashMap < InternedString , ValueRef > > ,
73
73
74
- // Reverse-direction for const ptrs cast from globals.
75
- // Key is an int, cast from a ValueRef holding a *T,
76
- // Val is a ValueRef holding a *[T].
77
- //
78
- // Needed because LLVM loses pointer->pointee association
79
- // when we ptrcast, and we have to ptrcast during translation
80
- // of a [T] const because we form a slice, a [*T,int] pair, not
81
- // a pointer to an LLVM array type.
74
+ /// Reverse-direction for const ptrs cast from globals.
75
+ /// Key is an int, cast from a ValueRef holding a *T,
76
+ /// Val is a ValueRef holding a *[T].
77
+ ///
78
+ /// Needed because LLVM loses pointer->pointee association
79
+ /// when we ptrcast, and we have to ptrcast during translation
80
+ /// of a [T] const because we form a slice, a [*T,int] pair, not
81
+ /// a pointer to an LLVM array type.
82
82
pub const_globals : RefCell < HashMap < int , ValueRef > > ,
83
83
84
- // Cache of emitted const values
84
+ /// Cache of emitted const values
85
85
pub const_values : RefCell < NodeMap < ValueRef > > ,
86
86
87
- // Cache of external const values
87
+ /// Cache of external const values
88
88
pub extern_const_values : RefCell < DefIdMap < ValueRef > > ,
89
89
90
90
pub impl_method_cache : RefCell < HashMap < ( ast:: DefId , ast:: Name ) , ast:: DefId > > ,
91
91
92
- // Cache of closure wrappers for bare fn's.
92
+ /// Cache of closure wrappers for bare fn's.
93
93
pub closure_bare_wrapper_cache : RefCell < HashMap < ValueRef , ValueRef > > ,
94
94
95
95
pub lltypes : RefCell < HashMap < ty:: t , Type > > ,
@@ -104,9 +104,9 @@ pub struct CrateContext {
104
104
pub int_type : Type ,
105
105
pub opaque_vec_type : Type ,
106
106
pub builder : BuilderRef_res ,
107
- // Set when at least one function uses GC. Needed so that
108
- // decl_gc_metadata knows whether to link to the module metadata, which
109
- // is not emitted by LLVM's GC pass when no functions use GC.
107
+ /// Set when at least one function uses GC. Needed so that
108
+ /// decl_gc_metadata knows whether to link to the module metadata, which
109
+ /// is not emitted by LLVM's GC pass when no functions use GC.
110
110
pub uses_gc : bool ,
111
111
pub dbg_cx : Option < debuginfo:: CrateDebugContext > ,
112
112
}
0 commit comments