ty: remove obsolete printer
This commit removes the obsolete printer and replaces all uses of it with `FmtPrinter`. Of the replaced uses, all but one use was in `debug!` logging, two cases were notable: - `MonoItem::to_string` is used in `-Z print-mono-items` and therefore affects the output of all codegen-units tests. - `DefPathBasedNames` was used in `librustc_codegen_llvm/type_of.rs` with `LLVMStructCreateNamed` and that'll now get different values, but this should result in no functional change. Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
parent
85fbf49ce0
commit
6ff471b1cf
44 changed files with 385 additions and 664 deletions
|
@ -21,7 +21,7 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
|
|||
fn define<Bx: BuilderMethods<'a, 'tcx>>(&self, cx: &'a Bx::CodegenCx) {
|
||||
debug!(
|
||||
"BEGIN IMPLEMENTING '{} ({})' in cgu {}",
|
||||
self.to_string(cx.tcx(), true),
|
||||
self,
|
||||
self.to_raw_string(),
|
||||
cx.codegen_unit().name()
|
||||
);
|
||||
|
@ -45,7 +45,7 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
|
|||
|
||||
debug!(
|
||||
"END IMPLEMENTING '{} ({})' in cgu {}",
|
||||
self.to_string(cx.tcx(), true),
|
||||
self,
|
||||
self.to_raw_string(),
|
||||
cx.codegen_unit().name()
|
||||
);
|
||||
|
@ -59,7 +59,7 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
|
|||
) {
|
||||
debug!(
|
||||
"BEGIN PREDEFINING '{} ({})' in cgu {}",
|
||||
self.to_string(cx.tcx(), true),
|
||||
self,
|
||||
self.to_raw_string(),
|
||||
cx.codegen_unit().name()
|
||||
);
|
||||
|
@ -80,7 +80,7 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
|
|||
|
||||
debug!(
|
||||
"END PREDEFINING '{} ({})' in cgu {}",
|
||||
self.to_string(cx.tcx(), true),
|
||||
self,
|
||||
self.to_raw_string(),
|
||||
cx.codegen_unit().name()
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue