[all-commits] [llvm/llvm-project] 3d1099: Add Rust to CodeView SourceLanguage (CV_CFL_LANG) ...

Arlo Siemsen via All-commits all-commits at lists.llvm.org
Thu Jan 6 14:29:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d10997e42d225ead6237da98c2a714ea483a9d9
      https://github.com/llvm/llvm-project/commit/3d10997e42d225ead6237da98c2a714ea483a9d9
  Author: Arlo Siemsen <arsiem at microsoft.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/DebugInfo/CodeView/CodeView.h
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    M llvm/lib/DebugInfo/CodeView/EnumTables.cpp
    M llvm/lib/DebugInfo/PDB/PDBExtras.cpp
    M llvm/lib/DebugInfo/PDB/PDBSymbolCompiland.cpp
    M llvm/test/DebugInfo/COFF/language.ll
    A llvm/test/DebugInfo/COFF/rust.ll
    M llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp

  Log Message:
  -----------
  Add Rust to CodeView SourceLanguage (CV_CFL_LANG) enum

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




More information about the All-commits mailing list