Rename MacOS set global dtor function.

This commit is contained in:
Vytautas Astrauskas 2020-04-19 12:24:46 -07:00
parent c84b2890ad
commit d6c03926ab
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
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_global_dtor(active_thread, dtor, data)?;
this.machine.tls.set_thread_global_dtor(active_thread, dtor, data)?;
}
// Querying system information

View File

@ -123,7 +123,7 @@ impl<'tcx> TlsData<'tcx> {
/// 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_global_dtor(
pub fn set_thread_global_dtor(
&mut self,
thread: ThreadId,
dtor: ty::Instance<'tcx>,