diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2017-10-19 11:01:31 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2017-10-19 11:01:31 +0200 |
| commit | 906523efea60f4d58d6ce58bc61589d4ff3d7b4e (patch) | |
| tree | fc1effcd46f2827dfc809ba2a25bdd16de0943fe /src/librustc_trans/common.rs | |
| parent | b7960878ba77124505aabe7dc99d0a898354c326 (diff) | |
| download | rust-906523efea60f4d58d6ce58bc61589d4ff3d7b4e.tar.gz rust-906523efea60f4d58d6ce58bc61589d4ff3d7b4e.zip | |
Move collector to rustc_trans_utils
Diffstat (limited to 'src/librustc_trans/common.rs')
| -rw-r--r-- | src/librustc_trans/common.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/librustc_trans/common.rs b/src/librustc_trans/common.rs index 52607904f73..e3856cabcf9 100644 --- a/src/librustc_trans/common.rs +++ b/src/librustc_trans/common.rs @@ -36,7 +36,6 @@ use libc::{c_uint, c_char}; use std::iter; use syntax::abi::Abi; -use syntax::attr; use syntax::symbol::InternedString; use syntax_pos::{Span, DUMMY_SP}; @@ -552,22 +551,6 @@ pub fn ty_fn_sig<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>, } } -pub fn requests_inline<'a, 'tcx>( - tcx: TyCtxt<'a, 'tcx, 'tcx>, - instance: &ty::Instance<'tcx> -) -> bool { - if is_inline_instance(tcx, instance) { - return true - } - if let ty::InstanceDef::DropGlue(..) = instance.def { - // Drop glue wants to be instantiated at every translation - // unit, but without an #[inline] hint. We should make this - // available to normal end-users. - return true - } - attr::requests_inline(&instance.def.attrs(tcx)[..]) -} - pub fn is_inline_instance<'a, 'tcx>( tcx: TyCtxt<'a, 'tcx, 'tcx>, instance: &ty::Instance<'tcx> |
