Rename lookup_variant to lookup
This commit is contained in:
@@ -111,9 +111,9 @@ macro_rules! isa_builder {
|
||||
}};
|
||||
}
|
||||
|
||||
/// Look for an ISA for the given `triple`, selecting the backend variant given
|
||||
/// by `variant` if available.
|
||||
pub fn lookup_variant(triple: Triple) -> Result<Builder, LookupError> {
|
||||
/// Look for an ISA for the given `triple`.
|
||||
/// Return a builder that can create a corresponding `TargetIsa`.
|
||||
pub fn lookup(triple: Triple) -> Result<Builder, LookupError> {
|
||||
match triple.architecture {
|
||||
Architecture::X86_64 => {
|
||||
isa_builder!(x64, (feature = "x86"), triple)
|
||||
@@ -125,12 +125,6 @@ pub fn lookup_variant(triple: Triple) -> Result<Builder, LookupError> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Look for an ISA for the given `triple`.
|
||||
/// Return a builder that can create a corresponding `TargetIsa`.
|
||||
pub fn lookup(triple: Triple) -> Result<Builder, LookupError> {
|
||||
lookup_variant(triple)
|
||||
}
|
||||
|
||||
/// Look for a supported ISA with the given `name`.
|
||||
/// Return a builder that can create a corresponding `TargetIsa`.
|
||||
pub fn lookup_by_name(name: &str) -> Result<Builder, LookupError> {
|
||||
|
||||
Reference in New Issue
Block a user