Remove nacl from libtest
This commit is contained in:
parent
aad1c998c7
commit
329b901b50
@ -1554,16 +1554,14 @@ impl MetricMap {
|
|||||||
/// elimination.
|
/// elimination.
|
||||||
///
|
///
|
||||||
/// This function is a no-op, and does not even read from `dummy`.
|
/// This function is a no-op, and does not even read from `dummy`.
|
||||||
#[cfg(not(any(all(target_os = "nacl", target_arch = "le32"),
|
#[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))]
|
||||||
target_arch = "asmjs", target_arch = "wasm32")))]
|
|
||||||
pub fn black_box<T>(dummy: T) -> T {
|
pub fn black_box<T>(dummy: T) -> T {
|
||||||
// we need to "use" the argument in some way LLVM can't
|
// we need to "use" the argument in some way LLVM can't
|
||||||
// introspect.
|
// introspect.
|
||||||
unsafe { asm!("" : : "r"(&dummy)) }
|
unsafe { asm!("" : : "r"(&dummy)) }
|
||||||
dummy
|
dummy
|
||||||
}
|
}
|
||||||
#[cfg(any(all(target_os = "nacl", target_arch = "le32"),
|
#[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))]
|
||||||
target_arch = "asmjs", target_arch = "wasm32"))]
|
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
pub fn black_box<T>(dummy: T) -> T {
|
pub fn black_box<T>(dummy: T) -> T {
|
||||||
dummy
|
dummy
|
||||||
|
Loading…
Reference in New Issue
Block a user