make sure macos function has 'macos' in its name

This commit is contained in:
Ralf Jung
2020-04-30 19:38:17 +02:00
parent 351d46d3fb
commit ba670d6970
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ fn emulate_foreign_item_by_name(
let dtor = this.memory.get_fn(dtor)?.as_instance()?;
let data = this.read_scalar(args[1])?.not_undef()?;
let active_thread = this.get_active_thread()?;
this.machine.tls.set_thread_dtor(active_thread, dtor, data)?;
this.machine.tls.set_macos_thread_dtor(active_thread, dtor, data)?;
}
// Querying system information
+1 -1
View File
@@ -136,7 +136,7 @@ pub fn store_tls(
/// implementation](https://github.com/opensource-apple/dyld/blob/195030646877261f0c8c7ad8b001f52d6a26f514/src/threadLocalVariables.c#L389):
///
/// // NOTE: this does not need locks because it only operates on current thread data
pub fn set_thread_dtor(
pub fn set_macos_thread_dtor(
&mut self,
thread: ThreadId,
dtor: ty::Instance<'tcx>,