mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Like the last commit, SourceFile is used a lot by Parse and Sema, but less so by the ClangImporter and (de)Serialization. Split it out to cut down on recompilation times when something changes. This commit does /not/ split the implementation of SourceFile out of Module.cpp, which is where most of it lives. That might also be a reasonable change, but the reason I was reluctant to is because a number of SourceFile members correspond to the entry points in ModuleDecl. Someone else can pick this up later if they decide it's a good idea. No functionality change.
2.1 KiB
2.1 KiB