Get rid of _stdlib_didEnterMain

Process arguments are now fetched per-platform
This commit is contained in:
Robert Widmann
2016-07-13 23:52:23 -07:00
parent 0586bc6a3d
commit fe00dc74ea
6 changed files with 18 additions and 52 deletions

View File

@@ -47,23 +47,3 @@ public enum CommandLine {
public static var arguments: [String]
= (0..<Int(argc)).map { String(cString: _unsafeArgv[$0]!) }
}
// FIXME(ABI)#25 : Remove this and the entrypoints in SILGen.
// rdar://problem/19696522
@_transparent
public // COMPILER_INTRINSIC
func _stdlib_didEnterMain(
argc: Int32, argv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>
) {
// Initialize the CommandLine.argc and CommandLine.unsafeArgv variables with the
// values that were passed in to main.
CommandLine._argc = Int32(argc)
CommandLine._unsafeArgv = argv
}
// FIXME: Move this to HashedCollections.swift.gyb
internal class _Box<Wrapped> {
internal var _value: Wrapped
internal init(_ value: Wrapped) { self._value = value }
}