File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_codegen_llvm/src/debuginfo Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub fn get_or_insert_gdb_debug_scripts_section_global<'ll>(cx: &CodegenCx<'ll, '
5353 let crate_name = cx. tcx . crate_name ( LOCAL_CRATE ) ;
5454 for ( index, visualizer) in visualizers. iter ( ) . enumerate ( ) {
5555 // The initial byte `4` instructs GDB that the following pretty printer
56- // is defined inline as opposed to in a file standalone file.
56+ // is defined inline as opposed to in a standalone file.
5757 section_contents. extend_from_slice ( b"\x04 " ) ;
5858 let vis_name = format ! ( "pretty-printer-{}-{}\n " , crate_name. as_str( ) , index) ;
5959 section_contents. extend_from_slice ( vis_name. as_bytes ( ) ) ;
@@ -107,7 +107,7 @@ pub fn needs_gdb_debug_scripts_section(cx: &CodegenCx<'_, '_>) -> bool {
107107 false
108108 }
109109 CrateType :: Rlib => {
110- // As per the above description, embedding visualizers for rlibs could
110+ // As per the above description, embedding pretty printers for rlibs could
111111 // lead to ODR violations so we skip this crate type as well.
112112 false
113113 }
You can’t perform that action at this time.
0 commit comments