Skip to content

Commit

Permalink
Debug instrumentation for construction of ImportedFileMap table entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Oct 28, 2016
1 parent 9d3caec commit c40fad3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/librustc_metadata/decoder.rs
Expand Up @@ -1138,6 +1138,14 @@ impl<'a, 'tcx> CrateMetadata {

match reusable_filemap {
Some(fm) => {

debug!("CrateMetaData::imported_filemaps reuse \
filemap {:?} original (start_pos {:?} end_pos {:?}) \
translated (start_pos {:?} end_pos {:?})",
filemap_to_import.name,
filemap_to_import.start_pos, filemap_to_import.end_pos,
fm.start_pos, fm.end_pos);

cstore::ImportedFileMap {
original_start_pos: filemap_to_import.start_pos,
original_end_pos: filemap_to_import.end_pos,
Expand Down Expand Up @@ -1176,6 +1184,12 @@ impl<'a, 'tcx> CrateMetadata {
source_length,
lines,
multibyte_chars);
debug!("CrateMetaData::imported_filemaps alloc \
filemap {:?} original (start_pos {:?} end_pos {:?}) \
translated (start_pos {:?} end_pos {:?})",
local_version.name, start_pos, end_pos,
local_version.start_pos, local_version.end_pos);

cstore::ImportedFileMap {
original_start_pos: start_pos,
original_end_pos: end_pos,
Expand Down

0 comments on commit c40fad3

Please sign in to comment.