Rollup merge of #138949 - madsmtm:rename-to-darwin, r=WaffleLapkin
Rename `is_like_osx` to `is_like_darwin` Replace `is_like_osx` with `is_like_darwin`, which more closely describes reality (OS X is the pre-2016 name for macOS, and is by now quite outdated; Darwin is the overall name for the OS underlying Apple's macOS, iOS, etc.). ``@rustbot`` label O-apple r? compiler
This commit is contained in:
commit
66e61c78e7
24 changed files with 54 additions and 54 deletions
|
@ -1024,7 +1024,7 @@ fn create_section_with_flags_asm(section_name: &str, section_flags: &str, data:
|
|||
}
|
||||
|
||||
pub(crate) fn bitcode_section_name(cgcx: &CodegenContext<LlvmCodegenBackend>) -> &'static CStr {
|
||||
if cgcx.target_is_like_osx {
|
||||
if cgcx.target_is_like_darwin {
|
||||
c"__LLVM,__bitcode"
|
||||
} else if cgcx.target_is_like_aix {
|
||||
c".ipa"
|
||||
|
@ -1077,7 +1077,7 @@ unsafe fn embed_bitcode(
|
|||
// and COFF we emit the sections using module level inline assembly for that
|
||||
// reason (see issue #90326 for historical background).
|
||||
unsafe {
|
||||
if cgcx.target_is_like_osx
|
||||
if cgcx.target_is_like_darwin
|
||||
|| cgcx.target_is_like_aix
|
||||
|| cgcx.target_arch == "wasm32"
|
||||
|| cgcx.target_arch == "wasm64"
|
||||
|
@ -1096,7 +1096,7 @@ unsafe fn embed_bitcode(
|
|||
let llglobal =
|
||||
llvm::add_global(llmod, common::val_ty(llconst), c"rustc.embedded.cmdline");
|
||||
llvm::set_initializer(llglobal, llconst);
|
||||
let section = if cgcx.target_is_like_osx {
|
||||
let section = if cgcx.target_is_like_darwin {
|
||||
c"__LLVM,__cmdline"
|
||||
} else if cgcx.target_is_like_aix {
|
||||
c".info"
|
||||
|
|
|
@ -120,7 +120,7 @@ impl CodegenCx<'_, '_> {
|
|||
}
|
||||
|
||||
// Match clang by only supporting COFF and ELF for now.
|
||||
if self.tcx.sess.target.is_like_osx {
|
||||
if self.tcx.sess.target.is_like_darwin {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@ pub(super) fn emit_va_arg<'ll, 'tcx>(
|
|||
emit_ptr_va_arg(bx, addr, target_ty, false, Align::from_bytes(8).unwrap(), false)
|
||||
}
|
||||
// macOS / iOS AArch64
|
||||
"aarch64" if target.is_like_osx => {
|
||||
"aarch64" if target.is_like_darwin => {
|
||||
emit_ptr_va_arg(bx, addr, target_ty, false, Align::from_bytes(8).unwrap(), true)
|
||||
}
|
||||
"aarch64" => emit_aapcs_va_arg(bx, addr, target_ty),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue