|
1 | 1 | use cranelift_codegen::isa::TargetFrontendConfig; |
2 | 2 | use cranelift_frontend::{FunctionBuilder, FunctionBuilderContext}; |
| 3 | +use rustc_abi::{Float, Integer, Primitive}; |
3 | 4 | use rustc_index::IndexVec; |
4 | 5 | use rustc_middle::ty::TypeFoldable; |
5 | 6 | use rustc_middle::ty::layout::{ |
6 | 7 | self, FnAbiError, FnAbiOfHelpers, FnAbiRequest, LayoutError, LayoutOfHelpers, |
7 | 8 | }; |
8 | 9 | use rustc_span::source_map::Spanned; |
9 | | -use rustc_target::abi::call::FnAbi; |
10 | | -use rustc_target::abi::{Float, Integer, Primitive}; |
| 10 | +use rustc_target::callconv::FnAbi; |
11 | 11 | use rustc_target::spec::{HasTargetSpec, Target}; |
12 | 12 |
|
13 | 13 | use crate::constant::ConstantCx; |
@@ -162,8 +162,8 @@ pub(crate) fn codegen_icmp_imm( |
162 | 162 | pub(crate) fn codegen_bitcast(fx: &mut FunctionCx<'_, '_, '_>, dst_ty: Type, val: Value) -> Value { |
163 | 163 | let mut flags = MemFlags::new(); |
164 | 164 | flags.set_endianness(match fx.tcx.data_layout.endian { |
165 | | - rustc_target::abi::Endian::Big => cranelift_codegen::ir::Endianness::Big, |
166 | | - rustc_target::abi::Endian::Little => cranelift_codegen::ir::Endianness::Little, |
| 165 | + rustc_abi::Endian::Big => cranelift_codegen::ir::Endianness::Big, |
| 166 | + rustc_abi::Endian::Little => cranelift_codegen::ir::Endianness::Little, |
167 | 167 | }); |
168 | 168 | fx.bcx.ins().bitcast(dst_ty, flags, val) |
169 | 169 | } |
@@ -333,8 +333,8 @@ impl<'tcx> layout::HasTyCtxt<'tcx> for FunctionCx<'_, '_, 'tcx> { |
333 | 333 | } |
334 | 334 | } |
335 | 335 |
|
336 | | -impl<'tcx> rustc_target::abi::HasDataLayout for FunctionCx<'_, '_, 'tcx> { |
337 | | - fn data_layout(&self) -> &rustc_target::abi::TargetDataLayout { |
| 336 | +impl<'tcx> rustc_abi::HasDataLayout for FunctionCx<'_, '_, 'tcx> { |
| 337 | + fn data_layout(&self) -> &rustc_abi::TargetDataLayout { |
338 | 338 | &self.tcx.data_layout |
339 | 339 | } |
340 | 340 | } |
@@ -491,8 +491,8 @@ impl<'tcx> layout::HasTyCtxt<'tcx> for RevealAllLayoutCx<'tcx> { |
491 | 491 | } |
492 | 492 | } |
493 | 493 |
|
494 | | -impl<'tcx> rustc_target::abi::HasDataLayout for RevealAllLayoutCx<'tcx> { |
495 | | - fn data_layout(&self) -> &rustc_target::abi::TargetDataLayout { |
| 494 | +impl<'tcx> rustc_abi::HasDataLayout for RevealAllLayoutCx<'tcx> { |
| 495 | + fn data_layout(&self) -> &rustc_abi::TargetDataLayout { |
496 | 496 | &self.0.data_layout |
497 | 497 | } |
498 | 498 | } |
|
0 commit comments