Update usage of target_lexicon to be consistent with v0.10 (#1003)

Jitdump was using an api consisent v0.04 for target_lexicon instead
of the version v0.10. This updates calls to target_lexicon to be
consistent with v0.10.
This commit is contained in:
Johnnie Birch
2020-02-27 20:43:20 -08:00
committed by GitHub
parent 8caa5a9476
commit 3e4509fd6a

View File

@@ -201,12 +201,8 @@ impl JitDumpAgent {
match target_lexicon::HOST.architecture { match target_lexicon::HOST.architecture {
Architecture::X86_64 => elf::header::EM_X86_64 as u32, Architecture::X86_64 => elf::header::EM_X86_64 as u32,
Architecture::I686 => elf::header::EM_386 as u32, Architecture::I686 => elf::header::EM_386 as u32,
Architecture::Arm => elf::header::EM_ARM as u32, Architecture::Arm(_) => elf::header::EM_ARM as u32,
Architecture::Armv4t => elf::header::EM_ARM as u32, Architecture::Aarch64(_) => elf::header::EM_AARCH64 as u32,
Architecture::Armv5te => elf::header::EM_ARM as u32,
Architecture::Armv7 => elf::header::EM_ARM as u32,
Architecture::Armv7s => elf::header::EM_ARM as u32,
Architecture::Aarch64 => elf::header::EM_AARCH64 as u32,
_ => unimplemented!("unrecognized architecture"), _ => unimplemented!("unrecognized architecture"),
} }
} }