Unify SourceFile::name_hash and StableSourceFileId
This commit is contained in:
parent
be69926a73
commit
fa8ef25372
10 changed files with 131 additions and 118 deletions
|
@ -534,7 +534,7 @@ fn hex_encode(data: &[u8]) -> String {
|
|||
}
|
||||
|
||||
pub fn file_metadata<'ll>(cx: &CodegenCx<'ll, '_>, source_file: &SourceFile) -> &'ll DIFile {
|
||||
let cache_key = Some((source_file.name_hash, source_file.src_hash));
|
||||
let cache_key = Some((source_file.stable_id, source_file.src_hash));
|
||||
return debug_context(cx)
|
||||
.created_files
|
||||
.borrow_mut()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue