/// Write the DWARf information to the given sections.
Write the DWARf information to the given sections.
Write the DWARf information to the given sections .
pub fn write<W: Writer>(&mut self, sections: &mut Sections<W>) -> Result<()> {
        let line_strings = self.line_strings.write(&mut sections.debug_line_str)?;
        let strings = self.strings.write(&mut sections.debug_str)?;
        let abbrev_offset = sections.debug_abbrev.offset();
        let mut abbrevs = AbbreviationTable::default();
        self.unit.write(
            sections,
            abbrev_offset,
            &mut abbrevs,
            &line_strings,
            &strings,
        )?;
        // None should exist because we didn't give out any UnitId.
        assert!(sections.debug_info_refs.is_empty());
        assert!(sections.debug_loc_refs.is_empty());
        assert!(sections.debug_loclists_refs.is_empty());
        abbrevs.write(&mut sections.debug_abbrev)?;
        Ok(())
    }
pub fn write < W : Writer > ( & mut self , sections : & mut Sections < W > ) -> Result < ( ) > { let line_strings = self . line_strings . write ( & mut sections . debug_line_str ) ? ; let strings = self . strings . write ( & mut sections . debug_str ) ? ; let abbrev_offset = sections . debug_abbrev . offset ( ) ; let mut abbrevs = AbbreviationTable :: default ( ) ; self . unit . write ( sections , abbrev_offset , & mut abbrevs , & line_strings , & strings , ) ? ; // None should exist because we didn't give out any UnitId. assert ! ( sections debug_info_refs is_empty ( ) ) ; assert ! ( sections debug_loc_refs is_empty ( ) ) ; assert ! ( sections debug_loclists_refs is_empty ( ) ) ; abbrevs . write ( & mut sections . debug_abbrev ) ? ; Ok ( ( ) ) }
Write the DWARf information to the given sections.
Write the DWARf information to the given sections .
&mut self
sections
&mut Sections<W>