[wasm] Rename native_pointer() to pointer_type() to make it more apparent it's a type;

This commit is contained in:
Benjamin Bouvier
2018-07-20 17:45:34 +02:00
committed by Dan Gohman
parent 32d657d62a
commit 5f3cd868cd
3 changed files with 7 additions and 7 deletions

View File

@@ -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()
}