[Runtime] Rename ClientRetainRelease library to SwiftDirectRuntime.

This library will likely become home to other fast-path-in-client functions, so give it a more general name.
This commit is contained in:
Mike Ash
2025-10-31 20:35:15 -04:00
parent b01436d67b
commit 1898b01ce6
17 changed files with 89 additions and 85 deletions

View File

@@ -566,7 +566,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
DereferenceableID = getLLVMContext().getMDKindID("dereferenceable");
C_CC = getOptions().PlatformCCallingConvention;
SwiftClientRR_CC = llvm::CallingConv::PreserveMost;
SwiftDirectRR_CC = llvm::CallingConv::PreserveMost;
// TODO: use "tinycc" on platforms that support it
DefaultCC = SWIFT_DEFAULT_LLVM_CC;
@@ -1733,9 +1733,9 @@ void IRGenModule::addLinkLibraries() {
registerLinkLibrary(
LinkLibrary{"objc", LibraryKind::Library, /*static=*/false});
if (TargetInfo.HasSwiftClientRRLibrary &&
getOptions().EnableClientRetainRelease)
registerLinkLibrary(LinkLibrary{"swiftClientRetainRelease",
if (TargetInfo.HasSwiftSwiftDirectRuntimeLibrary &&
getOptions().EnableSwiftDirectRuntime)
registerLinkLibrary(LinkLibrary{"swiftSwiftDirectRuntime",
LibraryKind::Library, /*static=*/true});
// If C++ interop is enabled, add -lc++ on Darwin and -lstdc++ on linux.