Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rust to CodeView SourceLanguage (CV_CFL_LANG) enum #126

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

arlosi
Copy link

@arlosi arlosi commented Jan 10, 2022

Cherry picks a recent change to LLVM that gives Rust its own identifier in the PDB format. Rust-compiled objects currently show as MASM (Microsoft Assembler) in PDB analysis tooling on Windows.

LLVM Differential Revision: https://reviews.llvm.org/D115300

Microsoft has added several new entries to the CV_CFL_LANG enum, including Rust:
    https://docs.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/cv-cfl-lang

This change adds Rust to the corresponding LLVM enum and translates `dwarf::DW_LANG_Rust` to `SourceLanguage::Rust` in the CodeView AsmPrinter.

This means that Rust will no longer emit as Masm.

Differential Revision: https://reviews.llvm.org/D115300
@nikic nikic merged commit 2abffbf into rust-lang:rustc/13.0-2021-09-30 Jan 11, 2022
@arlosi arlosi deleted the cherry-pick-rustpdb branch January 11, 2022 15:52
@arlosi
Copy link
Author

arlosi commented Jan 11, 2022

Thanks! Here's the PR to update rust: rust-lang/rust#92767

vext01 pushed a commit to vext01/llvm-project that referenced this pull request Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants