1
Fork 0

Unify SourceFile::name_hash and StableSourceFileId

This commit is contained in:
Michael Woerister 2023-12-19 22:34:26 +01:00
parent be69926a73
commit fa8ef25372
10 changed files with 131 additions and 118 deletions

View file

@ -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()