From 014918c0cab399fc532e45cf725c3c9c0c425aa6 Mon Sep 17 00:00:00 2001 From: Nate Cook Date: Mon, 27 Jul 2020 17:12:27 -0500 Subject: [PATCH] Only include _getMetadataSection functions in stdlib builds w/ assertions --- stdlib/public/core/Misc.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/core/Misc.swift b/stdlib/public/core/Misc.swift index 60b13b0c9a1bf..987ad6d2cd659 100644 --- a/stdlib/public/core/Misc.swift +++ b/stdlib/public/core/Misc.swift @@ -133,7 +133,7 @@ public func _getTypeByMangledNameInContext( genericArguments: UnsafeRawPointer?) -> Any.Type? - +#if INTERNAL_CHECKS_ENABLED @_silgen_name("swift_getMetadataSection") public func _getMetadataSection( _ index: UInt) @@ -147,4 +147,4 @@ public func _getMetadataSectionCount() public func _getMetadataSectionName( _ metadata_section: UnsafeRawPointer) -> UnsafePointer - +#endif