[wasm] Rename native_pointer() to pointer_type() to make it more apparent it's a type;
This commit is contained in:
committed by
Dan Gohman
parent
32d657d62a
commit
5f3cd868cd
@@ -85,7 +85,7 @@ pub trait FuncEnvironment {
|
||||
/// Get the Cranelift integer type to use for native pointers.
|
||||
///
|
||||
/// This returns `I64` for 64-bit architectures and `I32` for 32-bit architectures.
|
||||
fn native_pointer(&self) -> ir::Type {
|
||||
fn pointer_type(&self) -> ir::Type {
|
||||
ir::Type::int(u16::from(self.triple().pointer_width().unwrap().bits())).unwrap()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user