cg_clif: use exclusively ABI alignment
This commit is contained in:
parent
ce36a966c7
commit
59e9eb9b2b
2 changed files with 3 additions and 4 deletions
|
@ -65,7 +65,7 @@ pub(super) fn add_locals_header_comment(fx: &mut FunctionCx<'_, '_, '_>) {
|
|||
if fx.clif_comments.enabled() {
|
||||
fx.add_global_comment(String::new());
|
||||
fx.add_global_comment(
|
||||
"kind local ty size align (abi,pref)".to_string(),
|
||||
"kind local ty size align (abi)".to_string(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -84,13 +84,12 @@ pub(super) fn add_local_place_comments<'tcx>(
|
|||
let (kind, extra) = place.debug_comment();
|
||||
|
||||
fx.add_global_comment(format!(
|
||||
"{:<5} {:5} {:30} {:4}b {}, {}{}{}",
|
||||
"{:<5} {:5} {:30} {:4}b {}, {}{}",
|
||||
kind,
|
||||
format!("{:?}", local),
|
||||
format!("{:?}", ty),
|
||||
size.bytes(),
|
||||
align.abi.bytes(),
|
||||
align.pref.bytes(),
|
||||
if extra.is_empty() { "" } else { " " },
|
||||
extra,
|
||||
));
|
||||
|
|
|
@ -272,7 +272,7 @@ fn data_id_for_static(
|
|||
.layout_of(ty::TypingEnv::fully_monomorphized().as_query_input(ty))
|
||||
.unwrap()
|
||||
.align
|
||||
.pref
|
||||
.abi
|
||||
.bytes();
|
||||
|
||||
let linkage = if import_linkage == rustc_middle::mir::mono::Linkage::ExternalWeak
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue