Merge commit '5b1246bb4bed72fd0bb8fa497d8e5ed2c7f3515c' into sync_cg_clif-2024-11-02
This commit is contained in:
@@ -50,7 +50,12 @@ fn make_file_info(hash: SourceFileHash) -> Option<FileInfo> {
|
||||
if hash.kind == SourceFileHashAlgorithm::Md5 {
|
||||
let mut buf = [0u8; MD5_LEN];
|
||||
buf.copy_from_slice(hash.hash_bytes());
|
||||
Some(FileInfo { timestamp: 0, size: 0, md5: buf })
|
||||
Some(FileInfo {
|
||||
timestamp: 0,
|
||||
size: 0,
|
||||
md5: buf,
|
||||
source: None, // FIXME implement -Zembed-source
|
||||
})
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
@@ -101,6 +101,7 @@ impl DebugContext {
|
||||
None => (tcx.crate_name(LOCAL_CRATE).to_string(), None),
|
||||
};
|
||||
|
||||
let file_has_md5 = file_info.is_some();
|
||||
let mut line_program = LineProgram::new(
|
||||
encoding,
|
||||
LineEncoding::default(),
|
||||
@@ -108,7 +109,7 @@ impl DebugContext {
|
||||
LineString::new(name.as_bytes(), encoding, &mut dwarf.line_strings),
|
||||
file_info,
|
||||
);
|
||||
line_program.file_has_md5 = file_info.is_some();
|
||||
line_program.file_has_md5 = file_has_md5;
|
||||
|
||||
dwarf.unit.line_program = line_program;
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ impl UnwindContext {
|
||||
self.frame_table
|
||||
.add_fde(self.cie_id.unwrap(), unwind_info.to_fde(address_for_func(func_id)));
|
||||
}
|
||||
UnwindInfo::WindowsX64(_) => {
|
||||
// FIXME implement this
|
||||
UnwindInfo::WindowsX64(_) | UnwindInfo::WindowsArm64(_) => {
|
||||
// Windows does not have debug info for its unwind info.
|
||||
}
|
||||
unwind_info => unimplemented!("{:?}", unwind_info),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user