upgrade to target-lexicon 0.8.0

* the target-lexicon crate no longer has or needs the std feature
  in cargo, so we can delete all default-features=false, any mentions
  of its std feature, and the nostd configs in many lib.rs files
* the representation of arm architectures has changed, so some case
  statements needed refactoring
This commit is contained in:
Pat Hickey
2019-09-04 12:25:58 -07:00
committed by Dan Gohman
parent 49a37e48fb
commit 89d741f8ae
20 changed files with 33 additions and 44 deletions

View File

@@ -111,15 +111,8 @@ pub fn lookup(triple: Triple) -> Result<Builder, LookupError> {
Architecture::I386 | Architecture::I586 | Architecture::I686 | Architecture::X86_64 => {
isa_builder!(x86, "x86")(triple)
}
Architecture::Thumbv6m
| Architecture::Thumbv7em
| Architecture::Thumbv7m
| Architecture::Arm
| Architecture::Armv4t
| Architecture::Armv5te
| Architecture::Armv7
| Architecture::Armv7s => isa_builder!(arm32, "arm32")(triple),
Architecture::Aarch64 => isa_builder!(arm64, "arm64")(triple),
Architecture::Arm { .. } => isa_builder!(arm32, "arm32")(triple),
Architecture::Aarch64 { .. } => isa_builder!(arm64, "arm64")(triple),
_ => Err(LookupError::Unsupported),
}
}