Rename lookup_variant to lookup

This commit is contained in:
bjorn3
2021-09-29 22:37:45 +02:00
parent 4b6d20d03f
commit 463a88e002
3 changed files with 5 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ pub fn builder() -> Result<isa::Builder, &'static str> {
/// useful when more than oen backend exists for a given target
/// (e.g., on x86-64).
pub fn builder_with_options(infer_native_flags: bool) -> Result<isa::Builder, &'static str> {
let mut isa_builder = isa::lookup_variant(Triple::host()).map_err(|err| match err {
let mut isa_builder = isa::lookup(Triple::host()).map_err(|err| match err {
isa::LookupError::SupportDisabled => "support for architecture disabled at compile time",
isa::LookupError::Unsupported => "unsupported architecture",
})?;