Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/symbol/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,19 @@ pub enum SourceLanguage {
MSIL = 0x0f,
/// Application language is High Level Shader Language.
HLSL = 0x10,
/// Application language is Objective-C.
ObjC = 0x11,
/// Application language is Objective-C++.
ObjCXX = 0x12,
/// Application language is Swift.
Swift = 0x13,
/// Application is a module generated by the aliasobj tool.
AliasObj = 0x14,
/// Application language is Rust.
Rust = 0x15,
/// Application language is Go.
Go = 0x16,


/// The DMD compiler emits 'D' for the CV source language. Microsoft doesn't
/// have an enumerator for it yet.
Expand All @@ -551,6 +564,12 @@ impl fmt::Display for SourceLanguage {
Self::JScript => write!(f, "JScript"),
Self::MSIL => write!(f, "MSIL"),
Self::HLSL => write!(f, "HLSL"),
Self::ObjC => write!(f, "ObjC"),
Self::ObjCXX => write!(f, "ObjCXX"),
Self::Swift => write!(f, "Swift"),
Self::AliasObj => write!(f, "AliasObj"),
Self::Rust => write!(f, "Rust"),
Self::Go => write!(f, "Go"),
Self::D => write!(f, "D"),
}
}
Expand All @@ -576,6 +595,12 @@ impl From<u8> for SourceLanguage {
0x0e => Self::JScript,
0x0f => Self::MSIL,
0x10 => Self::HLSL,
0x11 => Self::ObjC,
0x12 => Self::ObjCXX,
0x13 => Self::Swift,
0x14 => Self::AliasObj,
0x16 => Self::Rust,
0x17 => Self::Go,
Comment thread
DanielT marked this conversation as resolved.
Outdated
0x44 => Self::D,
_ => Self::Masm, // There is no unknown, so we just force to Masm as the default.
}
Expand Down