Skip to content

Commit c1ad8b1

Browse files
committed
remove stub android files that don't do anything
1 parent 6eb3159 commit c1ad8b1

File tree

4 files changed

+1
-36
lines changed

4 files changed

+1
-36
lines changed

src/tools/miri/src/shims/unix/android/foreign_items.rs

-30
This file was deleted.

src/tools/miri/src/shims/unix/android/mod.rs

-1
This file was deleted.

src/tools/miri/src/shims/unix/foreign_items.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use shims::unix::mem::EvalContextExt as _;
1515
use shims::unix::sync::EvalContextExt as _;
1616
use shims::unix::thread::EvalContextExt as _;
1717

18-
use shims::unix::android::foreign_items as android;
1918
use shims::unix::freebsd::foreign_items as freebsd;
2019
use shims::unix::linux::foreign_items as linux;
2120
use shims::unix::macos::foreign_items as macos;
@@ -32,11 +31,10 @@ fn is_dyn_sym(name: &str, target_os: &str) -> bool {
3231
// Give specific OSes a chance to allow their symbols.
3332
_ =>
3433
match target_os {
35-
"android" => android::is_dyn_sym(name),
3634
"freebsd" => freebsd::is_dyn_sym(name),
3735
"linux" => linux::is_dyn_sym(name),
3836
"macos" => macos::is_dyn_sym(name),
39-
target_os => panic!("unsupported Unix OS {target_os}"),
37+
_ => false,
4038
},
4139
}
4240
}
@@ -706,7 +704,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
706704
_ => {
707705
let target_os = &*this.tcx.sess.target.os;
708706
return match target_os {
709-
"android" => android::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
710707
"freebsd" => freebsd::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
711708
"linux" => linux::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
712709
"macos" => macos::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),

src/tools/miri/src/shims/unix/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ mod mem;
55
mod sync;
66
mod thread;
77

8-
mod android;
98
mod freebsd;
109
mod linux;
1110
mod macos;

0 commit comments

Comments
 (0)