Make get_libcall_funcref pub(crate) (#1291)

* Make `get_libcall_funcref` `pub(crate)`

Closes https://github.com/bytecodealliance/cranelift/issues/1273.

Since get_libcall_funcref is only used internally by the verifier,
it doesn't make sense to have it be public. This will encourage users to
look elsewhere for `memcpy` (they should be looking at
https://docs.rs/cranelift-frontend/0.51.0/cranelift_frontend/struct.FunctionBuilder.html#method.emit_small_memcpy)
This commit is contained in:
Joshua Nelson
2020-01-24 10:43:44 -05:00
committed by Benjamin Bouvier
parent c360007b19
commit 5edf015ada
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
//! Expanding instructions as runtime library calls.
use crate::ir;
use crate::ir::{get_libcall_funcref, InstBuilder};
use crate::ir::{libcall::get_libcall_funcref, InstBuilder};
use crate::isa::{CallConv, TargetIsa};
use crate::legalizer::boundary::legalize_libcall_signature;
use alloc::vec::Vec;