rustc_platform_intrinsics: remove unused rustc dependency.
This commit is contained in:
parent
352b44d1fa
commit
0abd3139db
9 changed files with 12 additions and 23 deletions
|
|
@ -759,12 +759,11 @@ class CompilerDefs(object):
|
|||
|
||||
use {{Intrinsic, Type}};
|
||||
use IntrinsicDef::Named;
|
||||
use rustc::middle::ty::TyCtxt;
|
||||
|
||||
// The default inlining settings trigger a pathological behaviour in
|
||||
// LLVM, which causes makes compilation very slow. See #28273.
|
||||
#[inline(never)]
|
||||
pub fn find<'tcx>(_tcx: &TyCtxt<'tcx>, name: &str) -> Option<Intrinsic> {{
|
||||
pub fn find(name: &str) -> Option<Intrinsic> {{
|
||||
if !name.starts_with("{0}") {{ return None }}
|
||||
Some(match &name["{0}".len()..] {{'''.format(platform.intrinsic_prefix())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue