From 3e4509fd6a2a30b3327b93369e85494c05943b57 Mon Sep 17 00:00:00 2001 From: Johnnie Birch <45402135+jlb6740@users.noreply.github.com> Date: Thu, 27 Feb 2020 20:43:20 -0800 Subject: [PATCH] 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. --- crates/profiling/src/jitdump.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/profiling/src/jitdump.rs b/crates/profiling/src/jitdump.rs index 266ad6ee44..cff4155c83 100644 --- a/crates/profiling/src/jitdump.rs +++ b/crates/profiling/src/jitdump.rs @@ -201,12 +201,8 @@ impl JitDumpAgent { match target_lexicon::HOST.architecture { Architecture::X86_64 => elf::header::EM_X86_64 as u32, Architecture::I686 => elf::header::EM_386 as u32, - Architecture::Arm => elf::header::EM_ARM as u32, - Architecture::Armv4t => elf::header::EM_ARM 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, + Architecture::Arm(_) => elf::header::EM_ARM as u32, + Architecture::Aarch64(_) => elf::header::EM_AARCH64 as u32, _ => unimplemented!("unrecognized architecture"), } }