@@ -59,7 +59,7 @@ use callee::{Callee, CallArgs, ArgExprs, ArgVals};
59
59
use cleanup:: { self , CleanupMethods , DropHint } ;
60
60
use closure;
61
61
use common:: { Block , C_bool , C_bytes_in_context , C_i32 , C_int , C_uint , C_integral } ;
62
- use collector:: { self , TransItem , TransItemState , TransItemCollectionMode } ;
62
+ use collector:: { self , TransItemState , TransItemCollectionMode } ;
63
63
use common:: { C_null , C_struct_in_context , C_u64 , C_u8 , C_undef } ;
64
64
use common:: { CrateContext , DropFlagHintsMap , Field , FunctionContext } ;
65
65
use common:: { Result , NodeIdAndSpan , VariantInfo } ;
@@ -80,8 +80,9 @@ use machine::{llalign_of_min, llsize_of, llsize_of_real};
80
80
use meth;
81
81
use mir;
82
82
use monomorphize:: { self , Instance } ;
83
- use partitioning:: { self , PartitioningStrategy , InstantiationMode , CodegenUnit } ;
83
+ use partitioning:: { self , PartitioningStrategy , CodegenUnit } ;
84
84
use symbol_names_test;
85
+ use trans_item:: TransItem ;
85
86
use tvec;
86
87
use type_:: Type ;
87
88
use type_of;
@@ -2941,8 +2942,8 @@ fn collect_and_partition_translation_items<'a, 'tcx>(scx: &SharedCrateContext<'a
2941
2942
None => TransItemCollectionMode :: Lazy
2942
2943
} ;
2943
2944
2944
- let ( items, reference_map ) = time ( time_passes, "translation item collection" , || {
2945
- collector:: collect_crate_translation_items ( scx, collection_mode)
2945
+ let ( items, inlining_map ) = time ( time_passes, "translation item collection" , || {
2946
+ collector:: collect_crate_translation_items ( & scx, collection_mode)
2946
2947
} ) ;
2947
2948
2948
2949
let strategy = if scx. sess ( ) . opts . debugging_opts . incremental . is_some ( ) {
@@ -2955,7 +2956,7 @@ fn collect_and_partition_translation_items<'a, 'tcx>(scx: &SharedCrateContext<'a
2955
2956
partitioning:: partition ( scx. tcx ( ) ,
2956
2957
items. iter ( ) . cloned ( ) ,
2957
2958
strategy,
2958
- & reference_map )
2959
+ & inlining_map )
2959
2960
} ) ;
2960
2961
2961
2962
if scx. sess ( ) . opts . debugging_opts . print_trans_items . is_some ( ) {
@@ -2983,18 +2984,17 @@ fn collect_and_partition_translation_items<'a, 'tcx>(scx: &SharedCrateContext<'a
2983
2984
output. push_str ( & cgu_name[ ..] ) ;
2984
2985
2985
2986
let linkage_abbrev = match linkage {
2986
- InstantiationMode :: Def ( llvm:: ExternalLinkage ) => "External" ,
2987
- InstantiationMode :: Def ( llvm:: AvailableExternallyLinkage ) => "Available" ,
2988
- InstantiationMode :: Def ( llvm:: LinkOnceAnyLinkage ) => "OnceAny" ,
2989
- InstantiationMode :: Def ( llvm:: LinkOnceODRLinkage ) => "OnceODR" ,
2990
- InstantiationMode :: Def ( llvm:: WeakAnyLinkage ) => "WeakAny" ,
2991
- InstantiationMode :: Def ( llvm:: WeakODRLinkage ) => "WeakODR" ,
2992
- InstantiationMode :: Def ( llvm:: AppendingLinkage ) => "Appending" ,
2993
- InstantiationMode :: Def ( llvm:: InternalLinkage ) => "Internal" ,
2994
- InstantiationMode :: Def ( llvm:: PrivateLinkage ) => "Private" ,
2995
- InstantiationMode :: Def ( llvm:: ExternalWeakLinkage ) => "ExternalWeak" ,
2996
- InstantiationMode :: Def ( llvm:: CommonLinkage ) => "Common" ,
2997
- InstantiationMode :: Decl => "Declaration" ,
2987
+ llvm:: ExternalLinkage => "External" ,
2988
+ llvm:: AvailableExternallyLinkage => "Available" ,
2989
+ llvm:: LinkOnceAnyLinkage => "OnceAny" ,
2990
+ llvm:: LinkOnceODRLinkage => "OnceODR" ,
2991
+ llvm:: WeakAnyLinkage => "WeakAny" ,
2992
+ llvm:: WeakODRLinkage => "WeakODR" ,
2993
+ llvm:: AppendingLinkage => "Appending" ,
2994
+ llvm:: InternalLinkage => "Internal" ,
2995
+ llvm:: PrivateLinkage => "Private" ,
2996
+ llvm:: ExternalWeakLinkage => "ExternalWeak" ,
2997
+ llvm:: CommonLinkage => "Common" ,
2998
2998
} ;
2999
2999
3000
3000
output. push_str ( "[" ) ;
0 commit comments