Dump fn ptr ABIs.

This commit is contained in:
Scott Olson 2017-02-07 01:57:42 -08:00
parent 468dbe8eaa
commit 9f7ca351e0

View File

@ -420,7 +420,12 @@ impl<'a, 'tcx> Memory<'a, 'tcx> {
(Some(a), None) => a,
(None, Some(fn_def)) => {
let name = ty::tls::with(|tcx| tcx.item_path_str(fn_def.def_id));
trace!("{} function pointer: {}: {}", msg, name, fn_def.sig);
let abi = if fn_def.abi == Abi::Rust {
format!("")
} else {
format!("extern {} ", fn_def.abi)
};
trace!("{} function pointer: {}: {}{}", msg, name, abi, fn_def.sig);
continue;
},
(None, None) => {