Only include _getMetadataSection functions in stdlib builds w/ assertions

This commit is contained in:
Nate Cook
2020-07-27 17:12:27 -05:00
parent c042638a37
commit 014918c0ca

View File

@@ -133,7 +133,7 @@ public func _getTypeByMangledNameInContext(
genericArguments: UnsafeRawPointer?) genericArguments: UnsafeRawPointer?)
-> Any.Type? -> Any.Type?
#if INTERNAL_CHECKS_ENABLED
@_silgen_name("swift_getMetadataSection") @_silgen_name("swift_getMetadataSection")
public func _getMetadataSection( public func _getMetadataSection(
_ index: UInt) _ index: UInt)
@@ -147,4 +147,4 @@ public func _getMetadataSectionCount()
public func _getMetadataSectionName( public func _getMetadataSectionName(
_ metadata_section: UnsafeRawPointer) _ metadata_section: UnsafeRawPointer)
-> UnsafePointer<CChar> -> UnsafePointer<CChar>
#endif