Use config directives to carve out a 'portable' kernel stdlib.

Swift SVN r23202
This commit is contained in:
Graham Batty
2014-11-10 18:03:09 +00:00
parent c270f76db1
commit dfa260fab1
27 changed files with 386 additions and 113 deletions

View File

@@ -16,6 +16,10 @@
//
//===----------------------------------------------------------------------===//
#if _runtime(_ObjC)
// FIXME: These need to be implemented even for non-objc:
// rdar://problem/18881196
enum _ValueOrReference {
case Reference, Value
init<T>(_: T.Type) {
@@ -185,3 +189,4 @@ public func _arrayConditionalCast<SourceElement, TargetElement>(
return _arrayConditionalBridgeElements(source)
}
}
#endif