Skip to content

Commit

Permalink
remove stub android files that don't do anything
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 23, 2023
1 parent 4896c95 commit 4b69e52
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 36 deletions.
30 changes: 0 additions & 30 deletions src/tools/miri/src/shims/unix/android/foreign_items.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/tools/miri/src/shims/unix/android/mod.rs

This file was deleted.

5 changes: 1 addition & 4 deletions src/tools/miri/src/shims/unix/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use shims::unix::mem::EvalContextExt as _;
use shims::unix::sync::EvalContextExt as _;
use shims::unix::thread::EvalContextExt as _;

use shims::unix::android::foreign_items as android;
use shims::unix::freebsd::foreign_items as freebsd;
use shims::unix::linux::foreign_items as linux;
use shims::unix::macos::foreign_items as macos;
Expand All @@ -32,11 +31,10 @@ fn is_dyn_sym(name: &str, target_os: &str) -> bool {
// Give specific OSes a chance to allow their symbols.
_ =>
match target_os {
"android" => android::is_dyn_sym(name),
"freebsd" => freebsd::is_dyn_sym(name),
"linux" => linux::is_dyn_sym(name),
"macos" => macos::is_dyn_sym(name),
target_os => panic!("unsupported Unix OS {target_os}"),
_ => false,
},
}
}
Expand Down Expand Up @@ -706,7 +704,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
_ => {
let target_os = &*this.tcx.sess.target.os;
return match target_os {
"android" => android::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
"freebsd" => freebsd::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
"linux" => linux::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
"macos" => macos::EvalContextExt::emulate_foreign_item_inner(this, link_name, abi, args, dest),
Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/src/shims/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod mem;
mod sync;
mod thread;

mod android;
mod freebsd;
mod linux;
mod macos;
Expand Down

0 comments on commit 4b69e52

Please sign in to comment.