mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Each loaded file gets added to the main module, rather than being a standalone separate module. In theory, this will be used to assemble several partial ASTs into a complete module. In practice, there's still a ways to go...but this can already round-trip a single module file. This also factors out the FileUnit-creating part of SerializedModuleLoader, which should help clients like SourceKit that don't need to search for a swiftmodule file associated with a particular import. Swift SVN r10952
8 lines
443 B
Swift
8 lines
443 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %swift -emit-module -module-name def_class -o %t/stage1.swiftmodule %S/Inputs/def_class.swift
|
|
// RUN: %swift -emit-module -parse-as-library -o %t/def_class.swiftmodule %t/stage1.swiftmodule
|
|
// RUN: %swift -emit-silgen -enable-sil-linking -I=%t %S/class.swift | FileCheck %s -check-prefix=SIL
|
|
|
|
// SIL-LABEL: sil deserialized [transparent] @_TSsoi1pFT3lhsSi3rhsSi_Si : $@thin (Int64, Int64) -> Int64 {
|