rust/src/librustc_session
bors 6050e523ba Auto merge of #69718 - arlosi:debughash, r=eddyb
Add hash of source files in debug info

LLVM supports placing the hash of source files inside the debug info.
This information can be used by a debugger to verify that the source code matches
the executable.

This change adds support for both hash algorithms supported by LLVM, MD5 and SHA1, controlled by a target option.

* DWARF only supports MD5
* LLVM IR supports MD5 and SHA1 (and SHA256 in LLVM 11).
* CodeView (.PDB) supports MD5, SHA1, and SHA256.

Fixes #68980.

Tracking issue: #70401

rustc dev guide PR with further details: https://github.com/rust-lang/rustc-dev-guide/pull/623
2020-04-04 03:00:47 +00:00
..
lint Auto merge of #70370 - petrochenkov:nosmatch, r=Centril 2020-03-29 06:33:42 +00:00
Cargo.toml Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
cgu_reuse_tracker.rs
code_stats.rs Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
config.rs Add hash of source files in debug info 2020-04-02 14:13:19 -07:00
filesearch.rs Minor follow-up after renaming librustc(_middle) 2020-04-03 19:03:13 +09:00
lib.rs Refactorings to begin getting rid of rustc_codegen_utils 2020-03-19 23:14:46 -05:00
lint.rs Minor follow-up after renaming librustc(_middle) 2020-04-03 19:03:13 +09:00
options.rs Add hash of source files in debug info 2020-04-02 14:13:19 -07:00
output.rs Refactorings to begin getting rid of rustc_codegen_utils 2020-03-19 23:14:46 -05:00
parse.rs Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
search_paths.rs Add -Z no-link flag 2020-01-23 11:00:36 +11:00
session.rs Auto merge of #69718 - arlosi:debughash, r=eddyb 2020-04-04 03:00:47 +00:00
utils.rs